Help With Change Skin Script
#1

i made this script:

Код:
	 if(strcmp(cmd, "/cs", true) == 0)
	{
   if(IsPlayerConnected(playerid))
	 {
	new index = 0;
  tmp = strtok(params, index);
  new skin;
   if(PlayerInfo[playerid][pAdmin] < 2)
  {
	if(!strlen(tmp) || !IsNumeric(tmp) || IsInvalidSkin(skin))
	{
	SendClientMessage(playerid, COLOR_GRAD2, "Correct usage: '/cs [skinid]'");
	return 1;
	}
	if(skin > 299 || skin < 0)
	{
	SendClientMessage(playerid, COLOR_GRAD2, "Pick a skin from 0-299.");
	return 1;
	}
	skin = strval(tmp);
	SetPlayerSkin(playerid, skin);
	SendClientMessage(playerid, COLOR_GRAD2, "Skin changed.");
	return 1;
	}
	else
	{
  SendClientMessage(playerid, COLOR_GRAD1, "  You are not authorized to use that command!");
	}
	return 1;
	}
but i still get errors i dont know what the script problem somebody can help me?
Reply
#2

Post your errors.
Reply
#3

Код:
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2118) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2147) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2183) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2184) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2211) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2223) : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2234) : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2252) : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2263) : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2282) : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2298) : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2311) : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2325) : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2339) : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2354) : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2371) : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2383) : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2393) : error 004: function "ClearChatbox" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2691) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2695) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2811) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2815) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2827) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2831) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2835) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Hebrew\Desktop\MYSQL\gamemodes\rpmode.pwn(2839) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
This errors only beacuse this script Thanks for help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)