08.02.2018, 22:39
(
Последний раз редактировалось SamuelMatheus05; 08.02.2018 в 23:52.
)
galera quando eu digito /rg ele mostra minhas infos e a hab se a hab total for 2 й para mostrar hab nivel B sу que estб mostrando N/A q no caso se fosse 0 mas no arquivo da conta estб 2
COD:
COD:
PHP код:
if(strcmp(cmd,"/rg", true)==0)
{
if(RGAberto[playerid] == false){
new stringHab[256];
new HabNivel[50];
if(PlayerInfo[playerid][HabTotal] == 0) HabNivel = "N/A";
if(PlayerInfo[playerid][HabTotal] == 1) HabNivel = "A";
if(PlayerInfo[playerid][HabTotal] == 2) HabNivel = "B";
if(PlayerInfo[playerid][HabTotal] == 3) HabNivel = "C";
if(PlayerInfo[playerid][HabTotal] == 4) HabNivel = "D";
if(PlayerInfo[playerid][HabTotal] == 5) HabNivel = "E";
format(stringHab, sizeof(stringHab),"%s",HabNivel);
TextDrawSetString(NivelHab[playerid], HabNivel);
TextDrawShowForPlayer(playerid, NivelHab[playerid]);
return 1;
}
}