Few questions! - 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)
+--- Thread: Few questions! (
/showthread.php?tid=379506)
Few questions! -
doreto - 22.09.2012
I have few questions what i wonna ask for long time ago but i have no idea what i havent did it so lets get started
1.did the // or /* code */(comment) lines are read and take resource of the script
2.Can include detect if player is admin in gamememode
example : lets say on gamemode player is already defined as admin and on include only check if player is admin to prosses the command , like IfPlayerIsAdmin (i have my own this is just for explain) and include to check from gamemode if player is admin and can use this command
3.Its possible if script is too big(2k atm) to make issue to other thing like timers,...(wich correctly im expiring and trying to fix it ) and you know show when you have large script like over 20k lines
Please follow the format like:
1.anser
2.anser
Thanks to everyone who really help!
Re: Few questions! -
ReneG - 22.09.2012
1. Comments are ignored by the compiler.
2. As long as the variables are in scope of the include (defined
before including the include)
3. Well duh, 20k lines is actually small compared to the trillions of other sloppy RP scripts with 80k+ lines. Read up on optimization if you're really that concerned.