SA-MP Forums Archive
One problem with AKA - 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: One problem with AKA (/showthread.php?tid=347866)



One problem with AKA - Spike Cena - 03.06.2012

Hello I have a little problem with my AKA text.
this is what l have puted:
(AKA: %s) but when player with AKA connects it looks like this:
(AKA: nothing no name just that.
Can someone explane what to do or paste the code here pleas?


Re: One problem with AKA - Sandiel - 03.06.2012

is the "%s" supposed to be TEXT or just the player's NAME?

if it's just the name...
pawn Код:
public OnPlayerConnect(playerid)
{
    new pName[MAX_PLAYER_NAME];
    new str[128];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(str, sizeof(str), "AKA: %s", pName);
    SendClientMessageToAll(COLOR_WHITE, str); // change this to whatever you want...
    return 1;
}



Re: One problem with AKA - Spike Cena - 03.06.2012

its just a name and tnx


Re: One problem with AKA - Sandiel - 03.06.2012

Quote:
Originally Posted by Spike Cena
Посмотреть сообщение
its just a name and tnx
No problem, if you need anything else, just PM me.