Quote:
Originally Posted by Nake01
Ver se й mais ou menos isto:
pawn Code:
if(!strcmp(cmdtext, "/clanson", true)) { SendClientMessage(playerid, 0x00FF00FF, "#### CLANS ONLINE ####"); new count=0; for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][Ballas] >= 1 || PlayerInfo[i][Aztecas] >= 1 || PlayerInfo[i][Grove] >= 1 || PlayerInfo[i][Vagos] >= 1) { new cargo[20]; if(PlayerInfo[i][Ballas] >= 1) cargo = "Ballas"; if(PlayerInfo[i][Aztecas] >= 1) cargo = "Aztecas"; if(PlayerInfo[i][Grove] >= 3) cargo = "Grove"; if(PlayerInfo[i][Vagos] >= 4) cargo = "Vagos"; new str[100]; format(str, sizeof(str), "{FF0000}%s {C0C0C0}- %d",cargo, count); SendClientMessage(playerid, 0xC0C0C0FF, str); count++; } } } if(count == 0) { SendClientMessage(playerid, 0xFF0000FF, "Nenhum Membro de Clan Online."); } return 1; }
|
ERROS:
pawn Code:
error 017: undefined symbol "PlayerInfo"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Compilation aborted.
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
LINHA:
pawn Code:
if(PlayerInfo[i][Ballas] >= 1 || PlayerInfo[i][Aztecas] >= 1 || PlayerInfo[i][Grove] >= 1 || PlayerInfo[i][Vagos] >= 1)