15.10.2014, 20:27
Bom estou criando um sistema bem simples mais ainda possui erros:
no seguinte code:
Linha 43:
alguйm pode me ajudar, estou precisando muito de ajuda
PHP код:
Desktop\Untitled.pwn(43) : warning 215: expression has no effect
Desktop\Untitled.pwn(43) : error 001: expected token: ";", but found "]"
Desktop\Untitled.pwn(43) : error 029: invalid expression, assumed zero
Desktop\Untitled.pwn(43) : fatal error 107: too many error messages on one line
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/menuacessorios", true))
{
if(IsPlayerConnected(playerid))
{
if(Player[playerid][pAdmin] < 3)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк precisa ser VIP para usar acessуrios!");
return 1;
}
for(new x;x<MAX_PLAYER_ATTACHED_OBJECTS;x++)
{
if(IsPlayerAttachedObjectSlotUsed(playerid, x)) format(string, sizeof(string), "%s%d (OCUPADO)\n", string, x);
else format(string, sizeof(string), "%s%d\n", string, x);
}
ShowPlayerDialog(playerid, DIALOG_ATTACH_INDEX_SELECTION, DIALOG_STYLE_LIST, \
"{FF0000}Acessуrios {FFFFFF}- Vocк entrou no menu de acessorios!", string, "Select", "Cancel");
return 1;
}
}
return 0;
}
PHP код:
if(Player[playerid][pAdmin] < 3)