SA-MP Forums Archive
Doubt :: Large Scripts - 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: Doubt :: Large Scripts (/showthread.php?tid=82747)



Doubt :: Large Scripts - Vichuzz - 20.06.2009

Hii..

I was planning to integrate some of my FS into the GM. As this makes the GM lil bigger, does this cause any problems to the server? I mean lag/crash or anything like that?



Re: Doubt :: Large Scripts - Joe Staff - 20.06.2009

You might have conflicting information. PlayerInfo might be a variable on both scripts, and that will cause some pawn compilation issues.


Re: Doubt :: Large Scripts - Vichuzz - 20.06.2009

Okie..But this doesn't make any lag to server..right?


Re: Doubt :: Large Scripts - yezizhu - 20.06.2009

use 1 script to store data can avoid the problem,but it has less efficiency.
eg
pawn Код:
//in data script
new playerJob[MAX_PLAYERS];
forward getPlayerJob(playerid);
public getPlayerJob(playerid){
  return playerJob[playerid];
}
//
//in another script
stock getPlayerJob(playerid){
  return CallRemoteFunction("getPlayerJob","i",playerid);
//
This would give sth. help for your frame.