Help [Solved]
#1

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
Reply
#2

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);
	}
}
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)