SA-MP Forums Archive
Unable to find native "GetPlayerName" - 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: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: Unable to find native "GetPlayerName" (/showthread.php?tid=117660)



Unable to find native "GetPlayerName" - izstas - 01.01.2010

Code:
int amxIdx;
amx_FindNative(AMX, "GetPlayerName", &amxIdx);
I got 2147483647. Why?

For example, for IsPlayerConnected and GetPlayerMoney this code gives valid amxIdx.

Tried on 0.3a R3 and R4...


Re: Unable to find native "GetPlayerName" - Calon - 04.01.2010

I'm pretty new to these other languages, but GetPlayerName doesn't return an int...


Re: Unable to find native "GetPlayerName" - Streetplaya - 05.01.2010

Quote:
Originally Posted by Calon
I'm pretty new to these other languages, but GetPlayerName doesn't return an int...
He's talking about something different.

Make sure you have used the native in the filterscript the pointer 'AMX' points to.