need help in vip system
#1

hey guyz i just got 4 errors in my vip system so would u plz fix it
line:
pawn Код:
if(!IsValidSkin(skin)) return SendClientMessage(playerid,red,"[ERROR]Invalid skinID");
errors:
Код:
V.I.P-System.pwn(198) : error 012: invalid function call, not a valid address
V.I.P-System.pwn(198) : warning 215: expression has no effect
V.I.P-System.pwn(198) : error 001: expected token: ";", but found ")"
V.I.P-System.pwn(198) : error 029: invalid expression, assumed zero
V.I.P-System.pwn(198) : fatal error 107: too many error messages on one line

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


4 Errors.
so would u plz help me cuz im stuck with em' i tried to fix them by :
pawn Код:
new IsValidSkin[MAX_PLAYERS];
but it didn't work out so plz fix them !!!!!
Reply
#2

help anyone !!! plz
Reply
#3

Maybe you need to put a ; or ) or your lines doesnt make sense
Reply
#4

you still a beginer ?
Reply
#5

Why the hell would you make a variable for a skin for a player..?

Use the stock

pawn Код:
stock IsValidSkin(SkinID)
{
    if((SkinID == 0)||(SkinID == 7)||(SkinID >= 9 && SkinID <= 41)||(SkinID >= 43 && SkinID <= 64)||(SkinID >= 66 && SkinID <= 73)||(SkinID >= 75 && SkinID <= 85)||(SkinID >= 87 && SkinID <= 118)||(SkinID >= 120 && SkinID <= 148)||(SkinID >= 150 && SkinID <= 207)||(SkinID >= 209 && SkinID <= 264)||(SkinID >= 274 && SkinID <= 288)||(SkinID >= 290 && SkinID <= 299)) return true;
    else return false;
}
Reply
#6

man i have it but not working, so if u want the whole vip system then tell me
Reply
#7

pawn Код:
forward IsValidSkin(skin);
public IsValidSkin(skin)
{[INDENT]if(GetPlayerSkin(playerid) == //Skins you want) return 1;
else return 0;[/INDENT]}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)