1 time string edit, everywhere changed!
#1

I can make a string with:
pawn Код:
new string[1024];
format(string, sizeof(string), "string");
so if i made it under the other 'new' stuff, something like this:
pawn Код:
new playerid[MAX_PLAYERS];
new string[1024];
format(string, sizeof(string), "lol");
and on connection i do this:
pawn Код:
public OnPlayerConnect(playerid)
{
    GameTextForPlayer(playerid,string,3000,4);
    SendClientMessage(playerid,COLOR_WHITE,string");
    return 1;
}
and everywhere else they just use 1 string,
how to make that?
Reply
#2

Format it back, or don't use global string.
Reply
#3

what do you mean?
i am not very good in english,
but i want to have a global string!
Reply
#4

samp max string lenght is 128, using 1024 is useless.

Btw. Yes you can use the same string over and over again.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)