SA-MP Forums Archive
Name issue - 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: Name issue (/showthread.php?tid=583242)



Name issue - TwinkiDaBoss - 27.07.2015

So preety much as the tittle says, Im having this quite weird problem of setting player name


pawn Код:
format(string,sizeof(string), "[%s]%s",GetPlayerNation(playerid),GetName(playerid));
    SetPlayerName(playerid,string);
The name itself works, altho the nation is doubled.


[USSR][USSR]Twinki


Not sure if this can cause trouble.

I got this on OnPlayerLog
pawn Код:
new namestring[35];
                GetPlayerName(playerid, namestring, sizeof(namestring));
                strmid(TempName[playerid], namestring, 0, strlen(namestring), 64);
Im using it to save player name