format question with ZCMD.
#1

I'm using ZCMD in my gamemode, and everytime I want to do for example:
format(string, sizeof(string), "%s is now on admin duty", GetName(playerid));

I have to add a new string[]
So I thought if I will add one 'new string[128]' at the top of the gamemode, and I won't have to use too many bytes.

is that good?
Reply
#2

I have seen this topic come up on countless occasions, but haven't ever seen a good response about why you should/shouldn't use a global variable for strings.

Maybe ****** will post here, or something?
Reply
#3

so if 2 players send a command at the same time?
Reply
#4

PAWN is single threaded. It will process the command that was received first, and then process the next one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)