Help with something.
#1

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

You need sscanf plugin.
Reply
#3

how do i post somthing on the forms!!??
Reply
#4

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?
Reply
#5

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!
Reply
#6

I am very sure. I've changed it to a simple '123' and it isn't working.
Reply
#7

Check your
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
Callback!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)