Help With Change Skin Script - 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 Change Skin Script (
/showthread.php?tid=87930)
Help With Change Skin Script -
Ben147 - 23.07.2009
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?
Re: Help With Change Skin Script -
Abernethy - 23.07.2009
Post your errors.
Re: Help With Change Skin Script -
Ben147 - 23.07.2009
Код:
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