Very simple n00bish question
#1

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. (:
Reply
#2

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
Reply
#3

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:
Reply
#4

Try this, insert it anywhere inside your gamemode.

pawn Код:
stock ReturnPlayerName(playerid)
{
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    return pname;
}
Reply
#5

....I love you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)