SA-MP Forums Archive
Important note for scripters. - 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: Important note for scripters. (/showthread.php?tid=91927)



Important note for scripters. - MenaceX^ - 17.08.2009

Hey.

I've seen a lot of scripters using 255 instead of INVALID_PLAYER_ID, for GF uses for example. When you set something to INVALID_PLAYER_ID in GF it's usualy 255 (#define INVALID_PLAYER_ID 255)

What I'm trying to say is, stop using 255 and start using INVALID_PLAYER_ID because as you could've seen the 0.3 is doing good and in my opinion it'll be released in next 2 months. The 0.3 players limit is 500 and not 200, so if you do something like
pawn Код:
something[playerid]=255;
, that "something" will not be an INVALID player id. Because 255 will be a valid one.

I hope you'll listen to my hint.



Re: Important note for scripters. - Kyle - 17.08.2009

Thanks (Y)