26.08.2011, 16:13
Quote:
Originally Posted by Pawno Maldito
Compilando MMOv1.pwn...
D:\SA-MP\Gunners\gamemodes\MMOv1.pwn(449) : warning 219: local variable "GetPlayerName" shadows a variable at a preceding level D:\SA-MP\Gunners\gamemodes\MMOv1.pwn(449) : error 001: expected token: ";", but found "(" D:\SA-MP\Gunners\gamemodes\MMOv1.pwn(449) : warning 215: expression has no effect D:\SA-MP\Gunners\gamemodes\MMOv1.pwn(449) : warning 203: symbol is never used: "GetPlayerName" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
pawn Code:
SetarPlayer(playerid)
{
new Nome[MAX_PLAYER_NAME],
GetPlayerName(playerid, Nome, sizeof(Nome));// Linha 449/ Linha do erro
format(String, sizeof(String), CONTAS, Nome);
GivePlayerMoney(playerid, dini_Int(String,"Dinheiro"));
SetPlayerHealth(playerid, dini_Int(String,"Vida"));
SetPlayerArmour(playerid, dini_Int(String,"Colete"));
Matou[playerid] = dini_Int(String, "Matou");
Morreu[playerid] = dini_Int(String, "Morreu");
Logou[playerid] = dini_Int(String, "Logou");
return 1;
}
pawn Code:
if(PrimeiroSpawn[playerid] == false) {
new Nome[MAX_PLAYER_NAME]; // Linha que faltava ^^
//new String[50];
format(String, sizeof(String), CONTAS, Nome);
SetPlayerPos(playerid, dini_Float(String, "PosX"), dini_Float(String, "PosY"), dini_Float(String, "PosZ"));
PrimeiroSpawn[playerid] = true;
}