21.10.2016, 15:14
I think that I've already told you this but i haven't explained it well.
You can't use PlayerName2(playerid) if you don't have it defined so you should either define/stock it or start replacing it with GetPlayerName .
If you decide to replace it this is how to make a stock do this:
and i've already explained replacing it: http://forum.sa-mp.com/showpost.php?...88&postcount=4
You can't use PlayerName2(playerid) if you don't have it defined so you should either define/stock it or start replacing it with GetPlayerName .
If you decide to replace it this is how to make a stock do this:
pawn Код:
stock PlayerName2(id) // so you have an id argument where you put the wanted players ID when calling the function
{
new name[16]; // here you're making the empty string where you'll store a players name
GetPlayerName(id, name, sizeof(name)); // here you're storing it
return name; // sending player's name as a return
}