Showing the same name two times - 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: Showing the same name two times (
/showthread.php?tid=630786)
Showing the same name two times -
Groc - 18.03.2017
How need show same name two times
Код:
if(pInfo[killerid][pKills] == 10) { pInfo[killerid][pRank] = 1,format(str,sizeof(str),""COL_BLUE">> %s ranked up. now %s is peon",PlayerName(killerid)),SendClientMessageToAll(-1,str); }
This part "now %s is peon" doesnt show name, bat first part show name fine.
Re: Showing the same name two times -
Toroi - 18.03.2017
Код:
format(str,sizeof(str),""COL_BLUE">> %s ranked up. now %s is peon",PlayerName(killerid))
You have 2 strings in the format but you're assigning value to only one of them, it should be like this:
Код:
format(str,sizeof(str),""COL_BLUE">> %s ranked up. now %s is peon",PlayerName(killerid),PlayerName(killerid))