SA-MP Forums Archive
Dialog Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog Problem (/showthread.php?tid=350637)



Dialog Problem - Sanady - 13.06.2012

Hello everybody.Today I started to fixing my small bugs.And I find this one.I don`t know how to fix.Dialog of streak.
Chopper Gunner () but It must be writed Chopper Gunner (0).But It`s not.



CODE:
pawn Код:
CMD:streak(playerid,params[])
{
    new string[300];
    format(string,sizeof(string),""embed_orange"Rocket Launcher"embed_grey"(%i)\n"embed_orange"Exploziv RC"embed_grey"(%i)\n"embed_orange"Exploziv Tiger"embed_grey"(%i)\n"embed_orange"Chopper-Gunner"embed_grey"(%i)",KS[playerid][RPG],KS[playerid][RCXD],KS[playerid][ChopperG]);
    ShowPlayerDialog(playerid,Dialog:Streak,DIALOG_STYLE_LIST,""embed_blue"K "embed_white"ill "embed_blue"S"embed_white"treak",string,"Select","Quit");
    return 1;
}



Re: Dialog Problem - Sanady - 13.06.2012

Can Anyone help?(Sorry for double posting)


Re: Dialog Problem - Vince - 13.06.2012

Did it come to you mind to actually check your variables? You have 4 variables to insert into the string, yet I only count 3.


Re: Dialog Problem - Sanady - 13.06.2012

Quote:
Originally Posted by Vince
Посмотреть сообщение
Did it come to you mind to actually check your variables? You have 4 variables to insert into the string, yet I only count 3.
Ohh my god!!I didn`t saw this.Thanks