21.12.2012, 15:06
Bom estou criando organizaзхes mais estou tendo problemas.
com estб variбvel:
erro:
se precisar do comando:
com estб variбvel:
pawn Код:
new PlayerInfo[MAX_PLAYERS][Info];
pawn Код:
C:\Documents and Settings\Usuario\Desktop\Nova pasta\gamemodes\Gm.pwn(16) : error 017: undefined symbol "Info"
C:\Documents and Settings\Usuario\Desktop\Nova pasta\gamemodes\Gm.pwn(16) : error 009: invalid array size (negative, zero or out of bounds)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
pawn Код:
if(strcmp(cmd, "/convidar", true) == 0)
{
tmp = strtok(cmdtext, idx);
new PlayerB;
if(!strlen(tmp)) return SendClientMessage(playerid,-1, "Uso correto: /convidar [id]");
PlayerB = strval(tmp);
if(!IsPlayerConnected(PlayerB)) return SendClientMessage(playerid,-1, "Este jogador nгo estб conectado");
if(PlayerInfo[playerid][lspd] >= 6)
{
PlayerInfo[PlayerB][lspd] = 1;
SendClientMessage(PlayerB,-1, "Vocк foi convidado a LSPD.");
SetPlayerColor(PlayerB,-1);
return 1;
}
else if(PlayerInfo[playerid][lvpd] >= 6)
{
PlayerInfo[PlayerB][lvpd] = 1;
SendClientMessage(PlayerB, -1, "Vocк foi convidado a LVPD");
SetPlayerColor(PlayerB, -1);
return 1;
}
return 1;
}