SA-MP Forums Archive
Need help With Strings - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help With Strings (/showthread.php?tid=312851)



Need help With Strings - $lim$hady - 23.01.2012

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


Re: Need help With Strings - spd_sahil - 23.01.2012

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


Re: Need help With Strings - $lim$hady - 23.01.2012

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