Doubt :: Large Scripts
#1

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?
Reply
#2

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

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)