05.03.2018, 15:23
Troque essa parte
Por essa,e veja se funciona:
Da pra melhorar isso aqui :
Maneira legal
PHP Code:
new String[500];
format(String, sizeof(String),
"{FFFFFF}Nick: {FBEE3D}%s\n\
{FFFFFF}Admin: {a4a4a4}%s\n\
{FFFFFF}Matou: {a4a4a4}%d\n\
{FFFFFF}Morreu: {a4a4a4}%d\n\
{FFFFFF}Score: {a4a4a4}%d\n\
{FFFFFF}Cash: {fff600}%d\n\
{FFFFFF}Dinheiro: {49ad00}%d\n\
{FFFFFF}Tempo de Jogo: {a4a4a4}%s\n\
{FFFFFF}Tipo de Conta: {a4a4a4}%s\n\
{FFFFFF}Maconha: {a4a4a4}%d\n\
{FFFFFF}Cocaina: {a4a4a4}%d\n\
{FFFFFF}Fogos: {a4a4a4}%d\n\
{FFFFFF}Organizaзгo: {9c9c9c}%s",
Nome(playerid), CargoAdmintext(playerid), Player[playerid][Matou], Player[playerid][Morreu],
GetPlayerScore(playerid), Player[playerid][Cash], GetPlayerMoney(playerid), Convert(Player[playerid][pOnlineTime]), oRGFext3, Player[playerid][Maconha],
Player[playerid][Cocaina], Player[playerid][Fogos],oRGFext1);
PHP Code:
new String[500];
format(String, sizeof(String),
"{FFFFFF}Nick: {FBEE3D}%s\n
{FFFFFF}Admin: {a4a4a4}%s\n
{FFFFFF}Matou: {a4a4a4}%d\n
{FFFFFF}Morreu: {a4a4a4}%d\n
{FFFFFF}Score: {a4a4a4}%d\n
{FFFFFF}Cash: {fff600}%d\n
{FFFFFF}Dinheiro: {49ad00}%d\n
{FFFFFF}Tempo de Jogo: {a4a4a4}%s\n
{FFFFFF}Tipo de Conta: {a4a4a4}%s\n
{FFFFFF}Maconha: {a4a4a4}%d\n
{FFFFFF}Cocaina: {a4a4a4}%d\n
{FFFFFF}Fogos: {a4a4a4}%d\n
{FFFFFF}Organizaзгo: {9c9c9c}%s",
Nome(playerid), CargoAdmintext(playerid), Player[playerid][Matou], Player[playerid][Morreu],
GetPlayerScore(playerid), Player[playerid][Cash], GetPlayerMoney(playerid), Convert(Player[playerid][pOnlineTime]), oRGFext3, Player[playerid][Maconha],
Player[playerid][Cocaina], Player[playerid][Fogos],oRGFext1);
PHP Code:
new CargoAdmintext[100];
if(Player[playerid][Admin] == 5) { CargoAdmintext = "[5]: Game Master"; }
if(Player[playerid][Admin] == 4) { CargoAdmintext = "[4]: Sub Game Master"; }
if(Player[playerid][Admin] == 3) { CargoAdmintext = "[3]: Administrador Fixo"; }
if(Player[playerid][Admin] == 2) { CargoAdmintext = "[2]: Administrador Ajudante"; }
if(Player[playerid][Admin] == 1) { CargoAdmintext = "[1]: Administrador Temporбrio"; }
if(Player[playerid][Admin] == 0) { CargoAdmintext = "Nao"; }
PHP Code:
new CargoAdmintext[100];
switch(Player[playerid][Admin])
{
case 0:
CargoAdmintext = "Nao";
case 1:
CargoAdmintext = "[1]: Administrador Temporбrio";
case 2:
CargoAdmintext = "[2]: Administrador Ajudante";
case 3:
CargoAdmintext = "[3]: Administrador Fixo";
case 4:
CargoAdmintext = "[4]: Sub Game Master";
case 5:
CargoAdmintext = "[5]: Game Master";
}