Some Script Bugging
#6

Quote:
Originally Posted by iggy1
Посмотреть сообщение
Your 'if' statement is incorrect.

Код:
if(GetPlayerSkin(playerid) == 280 || 281 || 282 || 283 || 284 || 285 || 286 || 288 || 300 || 301 || 302 )
Should be

Код:
new SkinID = GetPlayerSkin(playerid);
if( SkinID == 280 || SkinID == 281 || SkinID == 282 /* And so on**/ )
You must compare with the skin id, otherwise you are just checking if the numbers are non-zero.

Your original code checks if SkinID is '280' the rest of it checks if 281 ... 302 is non-zero - which it is.
Nice!! REP++
Reply


Messages In This Thread
Some Script Bugging - by Harith - 06.09.2015, 04:56
Re: Some Script Bugging - by Amizone - 06.09.2015, 05:05
Re: Some Script Bugging - by Harith - 06.09.2015, 05:11
Re: Some Script Bugging - by Harith - 06.09.2015, 05:13
Re: Some Script Bugging - by iggy1 - 06.09.2015, 05:50
Re: Some Script Bugging - by Harith - 06.09.2015, 06:17
Re: Some Script Bugging - by Harith - 06.09.2015, 06:21
Re: Some Script Bugging - by iggy1 - 06.09.2015, 06:31
Re: Some Script Bugging - by Harith - 06.09.2015, 06:54
Re: Some Script Bugging - by iggy1 - 06.09.2015, 07:04

Forum Jump:


Users browsing this thread: 1 Guest(s)