05.08.2011, 19:48
deu um erro
pawn Код:
if(strcmp(cmd, "/dargrana", true) == 0)
{
tmp = strtok(cmdtext, idx);
/*linha do erro*/ if(!strlen(tmp) && GetPVarInt(playerid, "Level") => 3)
{
SendClientMessage(playerid, COLOR_DBLUE, "Uso correto: /dagrana [id do player] [quantidade]");
return 1;
}
new money;
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(GetPVarInt(playerid, "Level") => 3)
{
ResetPlayerMoney(giveplayerid);
GivePlayerMoney(giveplayerid, money);
format(stringx, sizeof(stringx), "[ Server ] Vocк mudou a dinehiro de %s(%i) para $%d!", giveplayer,giveplayerid, money);
SendClientMessage(playerid,0x0084ffAA, stringx);
format(stringx, sizeof(stringx), "[ Server ] O admin %s mudou seu dinhiro para %d!", sendername, money);
SendClientMessage(giveplayerid,0x0084ffAA, stringx);
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo tem permissгo para usar este comando!");
return 1;
}
return 1;
}
C:\Users\Leo\Desktop\mm ultimate\gamemodes\MataMata2008.pwn(7197) : warning 211: possibly unintended assignment
C:\Users\Leo\Desktop\mm ultimate\gamemodes\MataMata2008.pwn(7197) : error 022: must be lvalue (non-constant)
C:\Users\Leo\Desktop\mm ultimate\gamemodes\MataMata2008.pwn(7197) : error 029: invalid expression, assumed zero
C:\Users\Leo\Desktop\mm ultimate\gamemodes\MataMata2008.pwn(7197) : warning 215: expression has no effect
C:\Users\Leo\Desktop\mm ultimate\gamemodes\MataMata2008.pwn(7197) : error 001: expected token: ";", but found ")"
C:\Users\Leo\Desktop\mm ultimate\gamemodes\MataMata2008.pwn(7197) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.