[Ajuda] Sim ou Nгo
#1

Intгo tenho esse comando de VIP aqui:
pawn Код:
if(dini_Int(file,"VIP") == 1)
if(dini_Int(file,"VIP") == 0) ґ
Agora como fais tipo seto o vip ai vai para if(dini_Int(file,"VIP") == 1) ai aparece o texto VIP: Sim, Ai eu tiro o vip if(dini_Int(file,"VIP") == 0) ґ ai aparece o texto VIP: Nгo, Como que eu ponho VIP: sim e VIP: Nгo
Reply
#2

pawn Код:
new _@str[20];
format(_@str, sizeof(_@str), "Vip: {%s}%s", (dini_Int(file,"VIP") ? ("92FF00") : ("FF0000")), (dini_Int(file,"VIP") ? ("SIM") : ("NГO")));
Nгo testei.
Reply
#3

Tenta ae:
PHP код:
    static xVip[4], vipstr[26];
    if(
dini_Int(file,"VIP") == 1xVip "Sim";
    if(
dini_Int(file,"VIP") == 0xVip "Nгo";
    
format(vipstrsizeof(vipstr), "Jogador VIP: (%s)"xVip);
    
SendClientMessage(playerid, -1vipstr); 
Reply
#4

nгo й muito bom usar static pra string...
mais facil seria:

pawn Код:
new text[4], vip[20];
text = (dini_Int(file,"VIP") ? ("Sim") : ("Nгo"));
format(vip, sizeof(vip), "Vip ? %s", text);
Reply
#5

Quote:
Originally Posted by GReeN_WOoD
Посмотреть сообщение
Tenta ae:
PHP код:
    static xVip[4], vipstr[26];
    if(
dini_Int(file,"VIP") == 1xVip "Sim";
    if(
dini_Int(file,"VIP") == 0xVip "Nгo";
    
format(vipstrsizeof(vipstr), "Jogador VIP: (%s)"xVip);
    
SendClientMessage(playerid, -1vipstr); 
Viw aqui deu GReeN_WOoD , Viw ai pela ajuda DanDRT.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)