SA-MP Forums Archive
Error - 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)
+--- Thread: Error (/showthread.php?tid=390907)



Error - Morkano - 08.11.2012

Quote:

D:\Server\gamemodes\gs.pwn(165 : error 017: undefined symbol "IsInvalidSkin"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

I need help


Re: Error - arvifilter - 08.11.2012

This error means that you have not made the "IsInvalidSkin"
You can make it like this:
Код:
//At the top of the script
new validskin[MAX_PLAYERS];
//public OnPlayerSpawn
if(GetPlayerSkin(playerid) == "invalidskinid")
{
    validskin[playerid] = 0;
}
else
{
    validskin[playerid] = 1;
}
//then where you need to check if the skin is valid
if(validskin[playerid] == 1)//it is valid
//or
if(validskin[playerid] == 0)