Very simple n00bish question - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Very simple n00bish question (
/showthread.php?tid=266254)
Very simple n00bish question -
Sil3nc3 - 04.07.2011
I quite new to scripting, I know little snipets of things and I am trying to make a custom GM with the knowledge I have, it's going alright, but something bout defining ReturnPlayerName and I know this is very n00bish to ask but now do I define this XD
This is the error:
Код:
C:\Users\Administrator\Desktop\Project Regis\gamemodes\pxrpdev.pwn(579) : error 017: undefined symbol "ReturnPlayerName"
C:\Users\Administrator\Desktop\Project Regis\gamemodes\pxrpdev.pwn(610) : error 017: undefined symbol "ReturnPlayerName"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
A simple fix I am quite sure. (:
Re: Very simple n00bish question -
PrawkC - 04.07.2011
You need to make the stock called ReturnPlayerName, idk if its common, so you may be able to just search it, other wise you're going to have to make one.. thats gets the players name using GetPlayerName
Re: Very simple n00bish question -
Sil3nc3 - 04.07.2011
I'm sorry you totally lost me there. I've heard about something about ReturnPlayerName by ****** but I am quite confused still over it, I am trying my best to understand scripting and learn it...it isn't going so well as you can see D:
Re: Very simple n00bish question -
Lorenc_ - 04.07.2011
Try this, insert it anywhere inside your gamemode.
pawn Код:
stock ReturnPlayerName(playerid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
return pname;
}
Re: Very simple n00bish question -
Sil3nc3 - 04.07.2011
....I love you!