[Question] How to fix this ?
#1

I want to start editing GF gamemode but first I want to fix this.

When i Compile original GF gamemode compiler say this


Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 5880 bytes
Code size: 1100332 bytes
Data size: 4429832 bytes
Stack / heap size: 16,384 bytes; estimated max. usage = 5103 cells (20,412 bytes)
Total requirements: 5552428 bytes





I want to show only this


Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase



I read samo postb by ****** but i'm a beginer and don't understand

Please tell my how to fix that ?
What i need to change ?
Reply
#2

Reduce all the array sizes to a reasonable size, and start editing the GF to recycle variables (by that i mean use globals instead of declaring new vars every time).
Reply
#3

#pragma dynamic 450000 will solve it, but, as Kyosaur said, better do so.

The pragma dynamic is for lazy people.
Reply
#4

#pragma dynamic 450000
That will only hide that but not fix.

Does someone could tell me precisely what i need to change on the original GF gamemode ?
Reply
#5

Quote:
Originally Posted by ExEx
Посмотреть сообщение
#pragma dynamic 450000
That will only hide that but not fix.

Does someone could tell me precisely what i need to change on the original GF gamemode ?
I already did D: read my post again.


Also, i suggest you read ******' topic on array sizes if you havent.
Reply
#6

Quote:
Originally Posted by Kyosaur
Посмотреть сообщение
Reduce all the array sizes to a reasonable size, and start editing the GF to recycle variables (by that i mean use globals instead of declaring new vars every time).

Can you give me example ? how to do that ?


Thanks
Reply
#7

This is a place to start:

https://sampforum.blast.hk/showthread.php?tid=55261
Reply
#8

omg i'm beginer

please give me sample example !!!
Reply
#9

Sorry mate, but copied from the GF itself:

Quote:
Originally Posted by FeaR
Посмотреть сообщение
This script is not recommended for new scripters!!
Try editing smaller gamemodes first, before moving on to bigger ones I'd say.
Reply
#10

pawn Код:
new test[128];
okay, you add something like that in every command? instead of doing 128 or 256 you make it more accurate for example

pawn Код:
new test[5];
pawn Код:
format(test, sizeof(test), "Test", test);
SendClientMessage(playerid, 0xFFFFFFFF, test);
return 1;
Ready ******'s posts about this and find out about keeping things more accurate. but this will take a long time if you're doing this for every command in a stupid GF edit, I do recommend you take up a smaller gamemode.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)