24.08.2013, 22:20
Tento compilar mais sempre da 4 erro olhem!
PHP код:
if(dialogid == 2452)
{
if(response == 0)
{
SendClientMessage(playerid, COLOR_RED, "Voce Optou por nao sair da Prisao!");
return 1;
}
if(response == 1)
{
if(PlayerInfo[playerid][pJailTime] > 1100)
{
SendClientMessage(playerid,COR_PM,"Voce Nao Pode ser Solto agora!.");
return 0;
}
new giveplayer[MAX_PLAYER_NAME];
new giveplayerid;
GetPlayerName(playerid,playername,sizeof(playername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* Vocк libertou %s da cadeia.", PlayerName(playerid));
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Vocк foi libertado da cadeia pelo Advogado: %s.", sendername);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), ">> %s foi libertado da cadeia pelo Advogado %s.", PlayerName(playerid), sendername);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
ApprovedAdvogado[giveplayerid] = 0;
WantAdvogado[playerid] = 0;
CallAdvogado[playerid] = 0;
JailPrice[playerid] = 0;
PlayerInfo[playerid][pJailTime] = 1;
return 1;
}
return 1;
}
PHP код:
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BRPG.pwn(3222) : error 017: undefined symbol "playername"
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BRPG.pwn(3222) : error 017: undefined symbol "playername"
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BRPG.pwn(3222) : error 029: invalid expression, assumed zero
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BRPG.pwn(3222) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.