SA-MP Forums Archive
0.3 Scripting :S - 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: 0.3 Scripting :S (/showthread.php?tid=103070)



0.3 Scripting :S - Mike Garber - 18.10.2009

Hey, I'm scripting a new gamemode,
and all commands, pickups, and some vehicles is sloooow when I upload it to my paid host.
I mean, I can type a command, nothing comes up, after 20 seconds, It does.

When I go to a place where a pickup Is meant to be, It shows up after ~20 seconds.

Any Idea what It can be? No errors on compile, I just got a size-thingie.

Код:
Header size:      4000 bytes
Code size:      200180 bytes
Data size:      590076 bytes
Stack/heap size:   16384 bytes; estimated max. usage=5837 cells (23348 bytes)
Total requirements: 810640 bytes



Re: 0.3 Scripting :S - Sznupek - 18.10.2009

Use:

pawn Код:
#pragma dynamic [Value]
The value can't be too low


Re: 0.3 Scripting :S - dice7 - 18.10.2009

Quote:
Originally Posted by Sznupek
Use:

pawn Код:
#pragma dynamic [Value]
The value can't be too low
No
Read through this topic

http://forum.sa-mp.com/index.php?topic=79810.0


Re: 0.3 Scripting :S - Mike Garber - 18.10.2009

I still don't understand how to fix It! I just understand what causes It, but I don't know how to fix it,
sounds pretty stupid, but that's how It is :S

I'd appreciate If someone could tell me how to fix it.


Re: 0.3 Scripting :S - Virtual1ty - 18.10.2009

CTRL+H in pawno, on the first line: [256] , on the second line [128] , ok, and confirm yes to all ... problem solved!


Re: 0.3 Scripting :S - Mike Garber - 18.10.2009

Or not, I even changed all of them to 128, didn't work.


Re: 0.3 Scripting :S - saiberfun - 18.10.2009

Quote:
Originally Posted by mavtias
Or not, I even changed all of them to 128, didn't work.
u gotta change them to their real limits.
if ur string only needs [54] u have [128]
which is to much
so just change it to the limit.
cuz the more u got the bigger ur file gets.
so keep it as small as possible then this messages should go away too


Re: 0.3 Scripting :S - dice7 - 18.10.2009

Do
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS maximum players which can go to your server
and recompile


Re: 0.3 Scripting :S - saiberfun - 18.10.2009

Quote:
Originally Posted by dice7
Do
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS maximum players which can go to your server
and recompile
this can be a lil help to but that wasnt what he asked about i guess ^-^


Re: 0.3 Scripting :S - Mike Garber - 18.10.2009

Funny thing It worked fine in 0.2 but now It's just sloow.... :S