sscanf Help PLEASE!
#1

Can you please help me im at a total lost! thank you!

Код:
dcmd_givecash(playerid, params[])
{
	new giveplayerid;
	new amount;
	
	if (sscanf(params, "dd", giveplayerid, amount)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /givecash [playerid/partname] [amount]"); <--- 1288 here!
	else if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
	else if (amount > GetPlayerMoney(playerid)) SendClientMessage(playerid, 0xFF0000AA, "Insufficient Funds");
	else
	{
		GivePlayerMoney(giveplayerid, amount);
		GivePlayerMoney(playerid, 0 - amount);
		SendClientMessage(playerid, 0x00FF00AA, "Money sent");
		SendClientMessage(giveplayerid, 0x00FF00AA, "Money recieved");
	}
	return 1;
}
Error :
Код:
C:\Documents and Settings\Kody\Desktop\SAMP\gamemodes\CT.pwn(1288) : error 017: undefined symbol "sscanf"
Reply


Messages In This Thread
sscanf Help PLEASE! - by Kodman262 - 13.02.2009, 22:15
Re: sscanf Help PLEASE! - by Daren_Jacobson - 13.02.2009, 22:20
Re: sscanf Help PLEASE! - by Kodman262 - 13.02.2009, 22:22
Re: sscanf Help PLEASE! - by Mikep - 13.02.2009, 22:28
Re: sscanf Help PLEASE! - by SilentMouse - 13.02.2009, 22:30
Re: sscanf Help PLEASE! - by Kodman262 - 13.02.2009, 22:34
Re: sscanf Help PLEASE! - by SilentMouse - 13.02.2009, 22:42
Re: sscanf Help PLEASE! - by pen_theGun - 13.02.2009, 22:46
Re: sscanf Help PLEASE! - by Kodman262 - 13.02.2009, 22:48
Re: sscanf Help PLEASE! - by pen_theGun - 13.02.2009, 23:02

Forum Jump:


Users browsing this thread: 1 Guest(s)