SA-MP Forums Archive
Help Getting Name - 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)
+--- Thread: Help Getting Name (/showthread.php?tid=287406)



Help Getting Name - Buzzbomb - 03.10.2011

How Can I set a playername from use.ini file i want to do Someone like this SetPlayerName(playerid, PlayerInfo[playerid][pFirstname]); But everytime i do it the server shutdown after login and If i try PlayerInfo[playerid][pFirstname] = SetPlayerName(playerid, "Firstname"); It sets there name Firstname Instead of the name in the ini file... 2 people tried and It failed.. Someone please help me >.... Im dieing here for a solution....


Re: Help Getting Name - TheLazySloth - 03.10.2011

What?? xD

SetPlayerName(playerid, TheRoleplayName);
or
ShowNameTags(false);


Re: Help Getting Name - Buzzbomb - 03.10.2011

hhmm Would that work... i hope thanks for the response


Re: Help Getting Name - Buzzbomb - 03.10.2011

No Clue what happen but it made the server shut down with this one....

SetPlayerName(playerid, PlayerInfo[playerid][pFirstname]);


Re: Help Getting Name - TheLazySloth - 03.10.2011

Putting ShowNameTags(false); under the OnGameModeInit callback would disable the Name Tag above the player's heads... but will not remove their name from the tabs list.

Putting SetPlayerName(playerid, TheRoleplayName); somewhere in your script will change the name tag and the tabbed name... but will not disable them.

There is no way for disabling the names in the tabbed list.

Edit: Hmmm... It shouldn't, where did you put it?


Re: Help Getting Name - Buzzbomb - 03.10.2011

SetPlayerName(playerid, "Firstname");

Wouldnt let me login with ShowNameTags(false);


Re: Help Getting Name - Buzzbomb - 03.10.2011

And your code wont Compile gives errors

But I want it to get the players roleplay name from the user.ini that they typed in to call them selfs..

I put your Code Under OnPlayerConnect Or should i put is somewhere else


Re: Help Getting Name - TheLazySloth - 03.10.2011

... Okay after your registration/login system put SetPlayerName(playerid, PlayerInfo[playerid][pFirstname]);

And under OnGameModeInit put ShowNameTags(false);

If this doesn't work PM me with a way to contact you and I'll put them in myself.


Re: Help Getting Name - Buzzbomb - 03.10.2011

Biiii Cooorrrummmbaaaaaaaaaaa


Re: Help Getting Name - Buzzbomb - 03.10.2011

None Of them Methods worked anyone else have any ideals... lol this one insane code .... and samp dont like it