[Ajuda] Sim ou Nгo - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Sim ou Nгo (
/showthread.php?tid=473436)
Sim ou Nгo -
powerths - 02.11.2013
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
Respuesta: Sim ou Nгo -
DanDRT - 02.11.2013
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.
Re: Sim ou Nгo -
GReeN_WOoD - 02.11.2013
Tenta ae:
PHP код:
static xVip[4], vipstr[26];
if(dini_Int(file,"VIP") == 1) xVip = "Sim";
if(dini_Int(file,"VIP") == 0) xVip = "Nгo";
format(vipstr, sizeof(vipstr), "Jogador VIP: (%s)", xVip);
SendClientMessage(playerid, -1, vipstr);
Respuesta: Sim ou Nгo -
DanDRT - 02.11.2013
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);
Re: Sim ou Nгo -
powerths - 02.11.2013
Quote:
Originally Posted by GReeN_WOoD
Tenta ae:
PHP код:
static xVip[4], vipstr[26];
if(dini_Int(file,"VIP") == 1) xVip = "Sim";
if(dini_Int(file,"VIP") == 0) xVip = "Nгo";
format(vipstr, sizeof(vipstr), "Jogador VIP: (%s)", xVip);
SendClientMessage(playerid, -1, vipstr);
|
Viw aqui deu GReeN_WOoD

, Viw ai pela ajuda DanDRT.