[Ajudinha] Salvar ъltima posiзгo.
#5

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;
}
Ja veio com um erro aqui:
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;
    }
Reply


Messages In This Thread
[Ajudinha] Salvar ъltima posiзгo. - by Kuddy - 26.08.2011, 15:42
Re: [Ajudinha] Salvar ъltima posiзгo. - by [R] ousenber [K] - 26.08.2011, 15:52
Re: [Ajudinha] Salvar ъltima posiзгo. - by Kuddy - 26.08.2011, 15:58
Re: [Ajudinha] Salvar ъltima posiзгo. - by [R] ousenber [K] - 26.08.2011, 16:04
Re: [Ajudinha] Salvar ъltima posiзгo. - by Kuddy - 26.08.2011, 16:13
Re: [Ajudinha] Salvar ъltima posiзгo. - by [R] ousenber [K] - 26.08.2011, 16:14
Re: [Ajudinha] Salvar ъltima posiзгo. - by Kuddy - 26.08.2011, 16:19
Re: [Ajudinha] Salvar ъltima posiзгo. - by [R] ousenber [K] - 26.08.2011, 16:21
Re: [Ajudinha] Salvar ъltima posiзгo. - by Kuddy - 26.08.2011, 16:32
Re: [Ajudinha] Salvar ъltima posiзгo. - by [R] ousenber [K] - 26.08.2011, 16:35

Forum Jump:


Users browsing this thread: 2 Guest(s)