Just to be sure
#3

Quote:

1- Please confirm me that I am creating 400 "messages" variables in the same variable "message[400]" with arrays?

No, you are not. For every 'new message[400];' added, you're creating one new variable with 400 cells. This means you can fit 400 characters in to that variable, which is what we call a "string," because it strings together a combination of alphanumerical data.

Quote:

2- I've noticed that if I put to many arrays in the variable the server can't open, why?

Probably because you're consuming far too much memory.

Quote:

I keep using this script everytime i send aclient test message:
Quote:
format(message,sizeof(message),"The name %s is not found on the database.",pname);
SendClientMessage(playerid,COLOR_WHITE,message);
3- I understand a little why it get messed up but please someone tell me the exact truth?

pname is also a variable/string, if it's not created with 'new pname[(some number)];' then it will cause an error for your Pawn editor. If it is created, but there's no value assigned, it may return random symbols or nothing at all.

Quote:

4- Finally, why if i put more then lets say 400 character in the variable, it fails to have the rests, like if by calling "new message[400]" i'd say that the 400 is the avail. length in each string... why?

You can only send 128 characters per message in SA-MP, so you're wasting 272 cells, you should simply replace the 400 with 128. You should also read up on the SA-MP limits.
Reply


Messages In This Thread
Just to be sure - by rt-2 - 14.06.2011, 07:05
Re: Just to be sure - by Lorenc_ - 14.06.2011, 07:13
Re: Just to be sure - by Calgon - 14.06.2011, 07:28
Re: Just to be sure - by rt-2 - 14.06.2011, 07:45

Forum Jump:


Users browsing this thread: 2 Guest(s)