OMG? Why does this script not work?
#1

Код:
if (strcmp("/okill", cmdtext, true) == 0)
	{
	  if(adminlevel[playerid] > 1)
	  {
 		new killplayer;
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, GRAY, "Usage: /okill [id]");
			return 1;
		}
		killplayer = strval(tmp);
		
			if(!IsPlayerConnected(killplayer))
			{
				SendClientMessage(playerid, RED,"Player is not online!");
				return 1;
			}
			else
			{
				SendClientMessage(killplayer, RED,"You've been killed by %s! (ID %d)", name, playerid);
				SetPlayerHealth(killplayer, 0);
				format(string, sizeof(string), "%s (ID %d) Has used /okill onto %s.", name, playerid, killplayer);
				print(string);
				return 1;
			}
		else
		{
			SendClientMessage(playerid, GRAY, "You're not allowed to use this command.");
			format(string, sizeof(string), "%s (ID %d) Has used /okill unsuccesfully.", name, playerid, killplayer);
			print(string);
		}
	}
	return 1;
	)
If i add that in my GM, i get 26 errors:
3X
Код:
C:\Users\Remi de Groot\Desktop\SAMP Test Server\gamemodes\remi-x.pwn(287) : error 004: function "SendPlayerFormattedText" is not implemented
23X
Код:
C:\Users\Remi de Groot\Desktop\SAMP Test Server\gamemodes\remi-x.pwn(431) : error 079: inconsistent return types (array & non-array)
The errors are on different rules, not only at these.
and if i delete this script out of my GM, everithing works perfect.
Anybody who see the error?
Reply


Messages In This Thread
OMG? Why does this script not work? - by Remi-X - 27.03.2009, 14:23
Re: OMG? Why does this script not work? - by LarzI - 27.03.2009, 14:34
Re: OMG? Why does this script not work? - by Ryhanna - 27.03.2009, 14:34
Re: OMG? Why does this script not work? - by LarzI - 27.03.2009, 14:35
Re: OMG? Why does this script not work? - by Remi-X - 27.03.2009, 15:01
Re: OMG? Why does this script not work? - by LarzI - 27.03.2009, 15:04
Re: OMG? Why does this script not work? - by zanakinz - 27.03.2009, 16:37
Re: OMG? Why does this script not work? - by SpiderPork - 27.03.2009, 17:09
Re: OMG? Why does this script not work? - by Remi-X - 27.03.2009, 20:23
Re: OMG? Why does this script not work? - by LarzI - 27.03.2009, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)