SA-MP Forums Archive
DIALOG_STYLE_INPUT - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: DIALOG_STYLE_INPUT (/showthread.php?tid=114476)



DIALOG_STYLE_INPUT - gedux123775 - 19.12.2009

How make DIALOG_STYLE_INPUT this command

Quote:

if(!strcmp(cmdtext, "/imti", true, 5))
{
if(PlayerToPoint(1, playerid, 1610.1804,-2326.6047,13.5469))
{
if(cmdtext[6]==0 || !IsNumeric(cmdtext[7]))
{
SendClientMessage(playerid,0xFF3E9EFF,"* Paimt pinigu is bankomato: /imti [kiek]");
return 1;
}

new kiek = StringToInt(cmdtext[7]);

if(playerDB[playerid][banke] < kiek)
{
SendClientMessage(playerid,0xE60000FF,"* Banke, jus tiek neturite!");
return 1;
}

playerDB[playerid][banke]-=kiek;
GivePlayerMoneyA(playerid,kiek);
ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 4.000000, 0, 0, 0, 0, -1);
return 1;
}
}




Re: Help - gedux123775 - 19.12.2009

Help


Re: DIALOG_STYLE_INPUT - SiJ - 19.12.2009

I suggest you to ask at this forum