skin System problem
#1

Код:
 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.
Reply
#2

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.
Reply
#3

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.
Reply
#4

Its actually because you haven't got the function IsInvalidSkin. Search - find.
ps, I bet this is aztecas brother yeah ?? (bullshit)
Reply
#5

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;
}
Reply
#6

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;
    }
}
Reply
#7

i'm AzTeCaS brother but i use her name.cause he busy now for beging new Gamemod
Reply
#8

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.
Reply
#9

her or him.
Reply
#10

Quote:
Originally Posted by TopAz07
Посмотреть сообщение
her or him.
probably her. because only girls copy and paste stuff like this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)