14.06.2011, 07:05
Hi,
I am scripting a samp server and I have some questions here.(marked by numbers)
I've been using a variable "new message[400];" placed in the beginning of my file.
1- Please confirm me that I am creating 400 "messages" variables in the same variable "message[400]" with arrays?
2- I've noticed that if I put to many arrays in the variable the server can't open, why?
I keep using this script everytime i send aclient test message:
3- I understand a little why it get messed up but please someone tell me the exact truth?
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?
Thank you everyone
I am scripting a samp server and I have some questions here.(marked by numbers)
I've been using a variable "new message[400];" placed in the beginning of my file.
1- Please confirm me that I am creating 400 "messages" variables in the same variable "message[400]" with arrays?
2- I've noticed that if I put to many arrays in the variable the server can't open, why?
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); |
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?
Thank you everyone