Need help With Strings
#1

Hello Guyz I was Having problem With My String

This iS My String
Code:
new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
    	GetPlayerName(playerid, name, sizeof(name));
    	format(string, sizeof(string), "%s has Went To Nrg Parkour (/nrgparkour.", name);
    	SendClientMessageToAll(0x10F441AA, string);
But In game It Shows
Code:
Playername Has Went To Nrg Parko
It Doesnt Show THe Full Text It Should Show
Code:
playername  has Went To Nrg Parkour (/nrgparkour
Please Help Me Guyz ASAP
Reply
#2

change
pawn Code:
string[24+MAX_PLAYER_NAME]
to
pawn Code:
string[256]
and tell me if it works.. i dont see why you kept its limit 24+maxplayername
Reply
#3

Quote:
Originally Posted by spd_sahil
View Post
change
pawn Code:
string[24+MAX_PLAYER_NAME]
to
pawn Code:
string[256]
and tell me if it works.. i dont see why you kept its limit 24+maxplayername
Reallly Really Thnq It WOrked +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)