11.12.2015, 00:47
Eu ja tive esse bug era no anuncio quando alguem era id 0 quando eu dava /ann aparecia o nome do id 0 nгo o meu resolvi fazendo uma stock pra catar o nome.
Tenta agora
PHP код:
stock Nome(playerid)
{
new abyt[30];
GetPlayerName(playerid, abyt, sizeof(abyt));
return abyt;
}
PHP код:
if(dialogid == 3)
{
if(!response)
{
SendClientMessage(playerid,0xff5555ff,"SMS Cancelado.");
return 1;
}
new id;
if(PlayerInfo[playerid][pCreditos] == 0)
return SendClientMessage(playerid, -1, "Vocк nгo possui Crйditos.");
new ID2[20], String[128];
format(String, 128, "%s ID:%i Torpedгo: %s", playeridName, playerid, inputtext);
SendClientMessage(gPMDestinationID[playerid], 0xaaffaaff, String); //Envia a mensagem ao id que foi digitado
for(new i; i != MAX_PLAYERS; i++)
if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin] > 0)
{
printf("PLAYER ID %d | Admin level = %d", i, PlayerInfo[i][pAdmin]);
format(String, sizeof(String), "{00F51D} %s {FFFFFF}enviou para {F5AB00}%s: {00F51D}%s", Nome(playerid), Nome(ID2), inputtext);
SendClientMessage(i, COLOR_PCC, String);
}
PlayerInfo[playerid][pCreditos]--;
format(String, 128, "Torpedгo enviado a %s, gasto 1 Crйditos. Seus Crйditos: %i.", Nome(ID2), PlayerInfo[playerid][pCreditos]);
SendClientMessage(playerid, COLOR_CV, String);
return 1;
}

