Name prefixes - 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 prefixes (
/showthread.php?tid=603295)
Name prefixes -
ixesas - 21.03.2016
How do you actually save name prefixes with PVar variables (MySQL). Should u use PVarString? It would be wonderfull if I could get few examples. Tyvm
Re: Name prefixes -
ixesas - 21.03.2016
bump
Re: Name prefixes -
Markus_Whiteus - 21.03.2016
you could add prefix[definelengthhere] e.g prefix[20] to the enum then when you want the prefix to show call it there with PVar[playerid][prefix]
so like,
format(string, sizeof(string), "[%s]%s says:",PVar[playerid][prefix],[PVar][playerid][name]);
SendClientMessage(playerid, -1, string);
as an example