18.10.2011, 04:08
mesma coisa, loose identation :/, consegui resolver estes erros, agora apareceram estes
a linha й esta
e a funзгo й esta
Код:
C:\Documents and Settings\Administrador\Desktop\PFRP.pwn(28308) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrador\Desktop\PFRP.pwn(28308) : warning 215: expression has no effect
pawn Код:
PlayerInfo[para1][pSocio] = 1;
pawn Код:
if(strcmp(cmd, "/darsocio", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
MSGPLAYER(playerid, COLOR_GRAD2, "USE: /darsocio [id]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pSocio] = 1;
format(string, sizeof(string), " Vocк ganhou VIP socio do admin %s", sendername);
MSGPLAYER(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " Vocк deu VIP socio para %s.", giveplayer);
MSGPLAYER(playerid, COLOR_LIGHTBLUE, string);
}
}
}
else
{
MSGPLAYER(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!");
}
}
return 1;
}