new stringformat[200], nomeplayer1[MAX_PLAYER_NAME], nomeplayer2[MAX_PLAYER_NAME]; GetPlayerName(playerid, nomeplayer1, sizeof(nomeplayer1)); GetPlayerName(killerid, nomeplayer2, sizeof(nomeplayer2)); GameTextForPlayer(playerid,"~r~PERDEU PLAYBOY ~w~!!!",5000,5); format(stringformat, sizeof(stringformat), "{FF0000}[KILL]{1CD622} %s {FF0000}matou{1CD622} %s {FF0000}Com a Arma{1CD622} %i !", nomeplayer2, nomeplayer1, reason); SendClientMessageToAll(-1, stringformat);
new stringformat[200], nomeplayer1[MAX_PLAYER_NAME], nomeplayer2[MAX_PLAYER_NAME];
GetPlayerName(playerid, nomeplayer1, sizeof(nomeplayer1));
GetPlayerName(killerid, nomeplayer2, sizeof(nomeplayer2));
GameTextForPlayer(playerid,"~r~PERDEU PLAYBOY ~w~!!!",5000,5);
format(stringformat, sizeof(stringformat), "{FF0000}[KILL]{1CD622} %s {FF0000}matou{1CD622} %s {FF0000}Com a Arma{1CD622} %i !", nomeplayer2, nomeplayer1, GetWeaponNameEx(reason));
SendClientMessageToAll(-1, stringformat);
// Final
static stock GetWeaponNameEx(id)
{
static wepn[50];
GetWeaponName(id,weapn,sizeof weapn);
return wepn;
}
new stringformat[200], nomeplayer1[MAX_PLAYER_NAME], nomeplayer2[MAX_PLAYER_NAME]; GetPlayerName(playerid, nomeplayer1, sizeof(nomeplayer1)); GetPlayerName(killerid, nomeplayer2, sizeof(nomeplayer2)); GameTextForPlayer(playerid,"~r~PERDEU PLAYBOY ~w~!!!",5000,5); format(stringformat, sizeof(stringformat), "{FF0000}[KILL]{1CD622} %s {FF0000}matou{1CD622} %s {FF0000}Com a Arma{1CD622} %i !", nomeplayer2, nomeplayer1, GetWeaponNameEx(reason)); SendClientMessageToAll(-1, stringformat); // Final static stock GetWeaponNameEx(id) { static wepn[50]; GetWeaponName(id,weapn,sizeof weapn); return wepn; } |
C:\Users\jadir\Desktop\GM\gamemodes\Messi.pwn(857) : error 017: undefined symbol "weapn" C:\Users\jadir\Desktop\GM\gamemodes\Messi.pwn(857) : error 017: undefined symbol "weapn" |
// Final
static stock GetWeaponNameEx(id)
{
static weapn[50];
GetWeaponName(id,weapn,sizeof weapn);
return weapn;
}
GetWeaponName(id,wepn,sizeof wepn);
format(stringformat, sizeof(stringformat), "{FF0000}[KILL]{1CD622} %s {FF0000}matou{1CD622} %s {FF0000}Com a Arma{1CD622} %s!", nomeplayer2, nomeplayer1, GetWeaponNameEx(reason));