case CP_SAVE: {
new money = GetPlayerMoney(playerid);
new banks = bank[playerid];
new bountys = bounty[playerid];
new File: SaveHandler=fopen("saves.txt",io_read);
while(fread(SaveHandler, FileRead, 256, false)) {
if (strfind(FileRead,playername,false,0)!=-1) {
Save(playername,money,bank,bounty,1);
} else if (strfind(FileRead,playername,true,0)!=-1) {
Save(playername,money,bank,bounty,0);
}
}
}
here is 2049-2061 lines
when i add therer code i get:
D:\Instalai\Games\GTA\SAMP\Serveris\naujas lvdmod.pwn(487) : warning 219: local variable "playername" shadows a variable at a preceding level
D:\Instalai\Games\GTA\SAMP\Serveris\naujas lvdmod.pwn(844) : warning 219: local variable "playername" shadows a variable at a preceding level
D:\Instalai\Games\GTA\SAMP\Serveris\naujas lvdmod.pwn(935) : warning 202: number of arguments does not match definition
D:\Instalai\Games\GTA\SAMP\Serveris\naujas lvdmod.pwn(2056) : error 035: argument type mismatch (argument 3)
D:\Instalai\Games\GTA\SAMP\Serveris\naujas lvdmod.pwn(2058) : error 035: argument type mismatch (argument 3)
D:\Instalai\Games\GTA\SAMP\Serveris\naujas lvdmod.pwn(2061) : warning 204: symbol is assigned a value that is never used: "bountys"
D:\Instalai\Games\GTA\SAMP\Serveris\naujas lvdmod.pwn(2061) : warning 204: symbol is assigned a value that is never used: "banks"
D:\Instalai\Games\GTA\SAMP\Serveris\naujas lvdmod.pwn(2100) : warning 204: symbol is assigned a value that is never used: "ownplayer"
D:\Instalai\Games\GTA\SAMP\Serveris\naujas lvdmod.pwn(2100) : warning 204: symbol is assigned a value that is never used: "string"
D:\Instalai\Games\GTA\SAMP\Serveris\naujas lvdmod.pwn(2103) : error 017: undefined symbol "string"
D:\Instalai\Games\GTA\SAMP\Serveris\naujas lvdmod.pwn(2103) : error 017: undefined symbol "string"
D:\Instalai\Games\GTA\SAMP\Serveris\naujas lvdmod.pwn(2103) : error 029: invalid expression, assumed zero
D:\Instalai\Games\GTA\SAMP\Serveris\naujas lvdmod.pwn(2103) : fatal error 107: too many error messages on one line