Help [Solved] - 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: Help [Solved] (
/showthread.php?tid=145024)
Help [Solved] -
ViruZZzZ_ChiLLL - 30.04.2010
Okay so I have this code:
Код:
if(dialogid == 2)
{
if(response)
{
format(message, sizeof(message), "%d", inputtext);
GivePlayerMoney(playerid, message); // Argument mismatch
}
}
Problem :It says Argument Mismatch so how can I now give the player money on what I typed in the dialog??
________
FERRARI 328 SPECIFICATIONS
Re: Help -
Babul - 30.04.2010
no check for a wrong string like "12345abc" included (will be 0 then)
Код:
if(dialogid == 2)
{
if(response)
{
new Amount=strval(inputtext);
format(message, sizeof(message), "%d", Amount);
GivePlayerMoney(playerid, Amount);
}
}
Re: Help -
ViruZZzZ_ChiLLL - 30.04.2010
Quote:
Originally Posted by Babul
no check for a wrong string like "12345abc" included (will be 0 then)
Код:
if(dialogid == 2)
{
if(response)
{
new Amount=strval(inputtext);
format(message, sizeof(message), "%d", Amount);
GivePlayerMoney(playerid, Amount);
}
}
|
kk thanks
________
Ferrari 156 F1 Specifications