16.07.2010, 23:22
I have this command:
got this errors:
*D:\joram server\gamemodes\Dutchlife.pwn(4994) : error 017: undefined symbol "banka"
D:\joram server\gamemodes\Dutchlife.pwn(4994) : warning 215: expression has no effect
D:\joram server\gamemodes\Dutchlife.pwn(4994) : error 001: expected token: ";", but found "]"
D:\joram server\gamemodes\Dutchlife.pwn(4994) : error 029: invalid expression, assumed zero
D:\joram server\gamemodes\Dutchlife.pwn(4994) : fatal error 107: too many error messages on one line
thanks
pawn Код:
dcmd_setbank(playerid,params[])
{
new giveplayerid;
giveplayerid = strval(params);
new amount;
if(adminlevel[playerid] <=4)
{
SendClientMessage(playerid,COLOR_RED,"You are not allowed to do this");
return 1;
}
if(sscanf(params,"ud",giveplayerid,banka))
{
SendClientMessage(playerid,COLOR_RED,"USAGE:/setbank [playerid] [amount]");
return 1;
}
if(!IsPlayerConnected(giveplayerid))
{
SendClientMessage(playerid,COLOR_RED,"This player is not connected");
return 1;
}
banka[giveplayerid] = amount; //this line :O
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),"Your bank money is setted to %d by %s",amount,playername);
SendClientMessage(giveplayerid,COLOR_RED,string);
GetPlayerName(giveplayerid,playername,sizeof(playername));
format(string,sizeof(string),"You have setted %s his bankmoney to %d",playername,amount);
SendClientMessage(playerid,COLOR_RED,string);
}
*D:\joram server\gamemodes\Dutchlife.pwn(4994) : error 017: undefined symbol "banka"
D:\joram server\gamemodes\Dutchlife.pwn(4994) : warning 215: expression has no effect
D:\joram server\gamemodes\Dutchlife.pwn(4994) : error 001: expected token: ";", but found "]"
D:\joram server\gamemodes\Dutchlife.pwn(4994) : error 029: invalid expression, assumed zero
D:\joram server\gamemodes\Dutchlife.pwn(4994) : fatal error 107: too many error messages on one line
thanks