20.07.2009, 10:17
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
but i get undefined symbol errors and everything
help plz
if i learned this i can make alot of new things
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;
}
Код:
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.
if i learned this i can make alot of new things

