String doesnt print all the way
#1

Please help me why doesnt it show the whole line

Код:
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
	    GetPlayerName(playerid, name, sizeof(name));
	    format(string, sizeof(string), "{FA6B3C}Server manager {ED6868}%s {FA6B3C}has initiated a server restart.", name);
	    SendClientMessageToAll(0xC4C4C4FF, string);
	    SendClientMessageToAll(0xFA0A0AFF, "Server restart in 10 seconds...");
	    SetTimer("gmx", 10000, false);
Reply
#2

Same problem as this one: https://sampforum.blast.hk/showthread.php?tid=442874
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Yeah thats what i tought but how do i modify the string length on this?
Reply
#4

pawn Код:
print(string);
hmm what you problem ?
Reply
#5

Just change from string[24+MAX_PLAYER_NAME+1];
to: string[128+MAX_PLAYER_NAME+1];
Reply
#6

try this
pawn Код:
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "Server manager %s has initiated a server restart.", str);
print(str);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)