Warning 202:...
#1

Nevermind!, FIXED
Reply
#2

GetPlayerName doesn't work like that. See here for correct usage: https://sampwiki.blast.hk/wiki/GetPlayerName

However, I find that the easy way of inserting names is to simply get it once into a global variable in OnPlayerConnect and use that variable throughout the script.
Reply
#3

I will make it easier for you to understand what Vince meant.

pawn Код:
// global:
new Player_Name[MAX_PLAYERS][21];

#define GetName(%0) Player_Name[%0]

// OnPlayerConnect:
GetPlayerName(playerid, Player_Name, 21);
Now, replace "GetPlayerName(playerid)" with "GetName(playerid)" and you're done.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)