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;
}
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.
//No fim do GM
stock PlayerName ( playerid )
{
new Name [ MAX_PLAYER_NAME ] ;
GetPlayerName ( playerid , Name , MAX_PLAYER_NAME ) ;
return Name;
}
PHP код:
|
PHP код:
|
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BRPG.pwn(3221) : error 017: undefined symbol "playername"
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BRPG.pwn(3221) : error 017: undefined symbol "playername"
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BRPG.pwn(3221) : error 029: invalid expression, assumed zero
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BRPG.pwn(3221) : 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.
Mano continuoo o mesmo erro
PHP код:
|
new playername [ 21 ] ;
GetPlayerName ( playerid, playername, 21 ) ;
pawn Код:
|
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BRPG.pwn(3217) : warning 217: loose indentation
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BRPG.pwn(3225) : error 017: undefined symbol "string"
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BRPG.pwn(3225) : error 017: undefined symbol "string"
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BRPG.pwn(3225) : error 029: invalid expression, assumed zero
C:\Users\PetrickSchoba\Desktop\BRPG\gamemodes\BRPG.pwn(3225) : 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.
new string [ 128 ] ;