Sscanf problem
#1

Hello,
I am new at sscanf and i'm am busy with the tutorial of it on wikipedia
but i made one sscanf command this is the command

Код:
	{
	dcmd(heal, 4, cmdtext);
	return 0;
	}

	dcmd_heal(playerid, params[])
	{
	new
	id;
	if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/heal <playerid>\"");
	else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
	else
	{
		SetPlayerHealth(id, 100.0);
		SendClientMessage(id, 0x00FF00AA, "You have been healed");
		SendClientMessage(playerid, 0x00FF00AA, "Player healed");
	}
	return 1;
	}
but i get undefined symbol errors and everything

Код:
C:\Gta Sa Server Vernieuwd\gamemodes\freeroam.pwn(1596) : error 017: undefined symbol "dcmd_heal"
C:\Gta Sa Server Vernieuwd\gamemodes\freeroam.pwn(1600) : warning 225: unreachable code
C:\Gta Sa Server Vernieuwd\gamemodes\freeroam.pwn(1600) : error 017: undefined symbol "dcmd_heal"
C:\Gta Sa Server Vernieuwd\gamemodes\freeroam.pwn(1604) : error 017: undefined symbol "params"
C:\Gta Sa Server Vernieuwd\gamemodes\freeroam.pwn(1614) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
help plz
if i learned this i can make alot of new things
Reply


Messages In This Thread
Sscanf problem - by Pawno_Master - 20.07.2009, 10:17
Re: Sscanf problem - by MadeMan - 20.07.2009, 10:21
Re: Sscanf problem - by Pawno_Master - 20.07.2009, 10:22
Re: Sscanf problem - by MadeMan - 20.07.2009, 10:24
Re: Sscanf problem - by Pawno_Master - 20.07.2009, 10:26
Re: Sscanf problem - by Pawno_Master - 20.07.2009, 10:30
Re: Sscanf problem - by MadeMan - 20.07.2009, 10:36
Re: Sscanf problem - by Pawno_Master - 20.07.2009, 10:39
Re: Sscanf problem - by MadeMan - 20.07.2009, 10:42
Re: Sscanf problem - by Pawno_Master - 20.07.2009, 10:47

Forum Jump:


Users browsing this thread: 1 Guest(s)