02.03.2011, 18:13
Quote:
Originally Posted by Compilador Pawn do Inferno
D:\0.3c\gamemodes\stewiegm.pwn(401) : warning 211: possibly unintended assignment
D:\0.3c\gamemodes\stewiegm.pwn(401) : error 022: must be lvalue (non-constant) D:\0.3c\gamemodes\stewiegm.pwn(401) : warning 215: expression has no effect D:\0.3c\gamemodes\stewiegm.pwn(401) : error 001: expected token: ";", but found ")" D:\0.3c\gamemodes\stewiegm.pwn(401) : error 029: invalid expression, assumed zero D:\0.3c\gamemodes\stewiegm.pwn(401) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
pawn Код:
if(!strcmp(cmdtext, "/adminduty"))
{
if(GetPVarInt(playerid, "pAdmLvl") > 0)
{
if(GetPVarInt(playerid, "aDuty") < 1)
{
new sMessage[100], sName[24];
GetPlayerName(playerid, sName, 24);
format(sMessage, 100, "Bem-Vindo, {63A659}%s. Vocк estб logado como um administrador nivel {FFCC00}%d", sName, GetPVarInt(playerid, "pAdmLvl"));
SendClientMessage(playerid, 0xFFFFFFAA, sMessage);
}
}
else return SendClientMessage(playerid, 0xFFFFFFAA, "Vocк nгo й um administrador!");
return 1;
}
Tipo, eu resolvi, mas fiquei meio confuso.
Essa linha que zuou o bagulho:
Код:
if(GetPVarInt(playerid, "aDuty") = 1)
Код:
if(GetPVarInt(playerid, "aDuty") < 1)
Eu sei que tem operadores e pб, mas alguma pessoa menos noob que eu pode explicar?
Ah, agora saquei que tem que usar ==.
Mas, por que?