SA-MP Forums Archive
string help - 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: string help (/showthread.php?tid=628344)



string help - IceWizz - 09.02.2017

Hey guys i make a string and some there it work but when i join name it say player %s joined the server there code
Код:
new name[ MAX_PLAYER_NAME ];
GetPlayerName( playerid, name, MAX_PLAYER_NAME );
new string[32];
format(string, sizeof(string), " Igrac %s je usao na server!","%s");
SendClientMessageToAll(0x33AA33AA,string);



Re: string help - StrikerZ - 09.02.2017

PHP код:
new nameMAX_PLAYER_NAME ];
GetPlayerNameplayeridnameMAX_PLAYER_NAME );
new 
string[32];
format(stringsizeof(string), " Igrac %s je usao na server!",name);
SendClientMessageToAll(0x33AA33AA,string); 



Re: string help - IceWizz - 09.02.2017

tnx it work rep+


Re: string help - StrikerZ - 09.02.2017

Quote:
Originally Posted by IceWizz
Посмотреть сообщение
tnx it work
No problem.