skin System problem - 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: skin System problem (
/showthread.php?tid=201746)
skin System problem -
AzTeCaS - 22.12.2010
Код:
if(!strcmp(cmd, "/setskin", true))
{
myskin = strtok(cmdtext, idx);
if (!strlen(myskin)){
return 1;
}
if ((strval(myskin) < 0) || (strval(myskin) > 299) || IsInvalidSkin(strval(myskin)))
return SendClientMessage(playerid, COLOR_BRIGHTRED, "Invalid Skin");
SetPlayerSkin(playerid, strval(myskin));
skin[playerid] = 1;
return 1;
}
Код:
C:\Documents and Settings\Administrateur\Bureau\SaR\gamemodes\MyDM.pwn(1494) : error 017: undefined symbol "IsInvalidSkin"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: skin System problem -
Lorenc_ - 22.12.2010
If you found this in a tutorial, check for its varible, it should be an array and add it at the top of your script.
Re: skin System problem -
Sledge - 22.12.2010
Quote:
Originally Posted by Lorenc_
If you found this in a tutorial, check for its varible, it should be an array and add it at the top of your script.
|
He probably copied it from another script.
Re: skin System problem -
iggy1 - 22.12.2010
Its actually because you haven't got the function IsInvalidSkin. Search - find.
ps, I bet this is aztecas brother yeah ?? (bullshit)
Re: skin System problem -
HyperZ - 22.12.2010
I rly lol'd
pawn Код:
IsInvalidSkin(skinid)
{
#define MAX_BAD_SKINS 22
new InSkin[MAX_BAD_SKINS] = {
0, 3, 4, 5, 6, 8, 42, 65, 74, 86,
119, 149, 208, 273, 289};
for (new i = 0; i < MAX_BAD_SKINS; i++) {
if (skinid == InSkin[i]) return true;}
return 0;
}
Re: skin System problem -
iggy1 - 22.12.2010
Just edited clives function bit faster no variables (apart from skinid).
pawn Код:
IsInvalidSkin(skinid)
{
switch(skinid)
{
case 0, 3, 4, 5, 6, 8, 42, 65, 74, 86,
119, 149, 208, 273, 289:return true;
default: return false;
}
}
Re: skin System problem -
AzTeCaS - 22.12.2010
i'm AzTeCaS brother but i use her name.cause he busy now for beging new Gamemod
Re: skin System problem -
iggy1 - 22.12.2010
Quote:
Originally Posted by AzTeCaS
i'm AzTeCaS brother but i use her name.cause he busy now for beging new Gamemod
|
You know that actually makes no sense whatsoever. Why would you need to use his/hers name just because they are writting a gamemode?? Strange. Close - family sharing passwords ect.. Never heard of that i guess its each to their own.
Re: skin System problem -
TopAz07 - 22.12.2010
her or him.
Re: skin System problem -
Sledge - 22.12.2010
Quote:
Originally Posted by TopAz07
her or him.
|
probably her. because only girls copy and paste stuff like this.