Help with something. - 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 with something. (
/showthread.php?tid=254760)
Help with something. -
Splixicit - 12.05.2011
Hey, I started a new GM from scratch as I'm learing to script and I learned about Zcmd and sscanf. I included them both and everything worked fine till I created the CMD, then on the server console I get the error: File or function is not found. I placed the command at the bottom of my script, it isn't in anyother callbacks:
Код:
CMD:heal(playerid, params[])
{
new Player;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, RED, " You are not a administrator! ");
else if (sscanf(params, "u", Player)) return SendClientMessage(playerid, RED," Usage: /heal <playerID> ");
else if (Player == INVALID_PLAYER_ID) return SendClientMessage(playerid, RED," Invalid PlayerID ");
else
{
SetPlayerHealth(playerid, 100.0);
SendClientMessage(Player, GREEN, " You have been healed by an administrator! ");
SendClientMessage(playerid, GREEN, " Player healed! ");
}
return 1;
}
Re: Help with something. -
SchurmanCQC - 12.05.2011
You need sscanf plugin.
Re: Help with something. -
Ang916 - 12.05.2011
how do i post somthing on the forms!!??
Re: Help with something. -
Splixicit - 12.05.2011
I have now got it working though when I try to log in as rcon it keeps saying wrong password. I know what the rcon is, it just won't let me in. Can anyone help?
Re: Help with something. -
SchurmanCQC - 12.05.2011
Quote:
Originally Posted by Ang916
how do i post somthing on the forms!!??
|
LOL [1231231231]
EDIT: The above post, make sure you're putting it in properly, being double-sure wouldn't hurt!
Re: Help with something. -
Splixicit - 12.05.2011
I am very sure. I've changed it to a simple '123' and it isn't working.
Re: Help with something. -
SchurmanCQC - 12.05.2011
Check your
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
Callback!