0.3 Scripting :S
#1

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

Use:

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

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
Reply
#4

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

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

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

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
Reply
#8

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

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 ^-^
Reply
#10

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


Forum Jump:


Users browsing this thread: 2 Guest(s)