OnPlayerSpawn - 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: OnPlayerSpawn (
/showthread.php?tid=69464)
OnPlayerSpawn -
GTA_Rules - 18.03.2009
Hai,
I'm trying to make myself spawn with yellow colour and other skin. No errors, but ingame it's doing nothing
.
http://pastebin.com/m4e0836a4
Re: OnPlayerSpawn -
Weirdosport - 18.03.2009
The only thing I can see (that might be) wrong (at a glance) is:
pawn Код:
if(strcmp(Data,"[BA]Matthias",true))
Could be made..:
pawn Код:
if(strcmp(Data, "[BA]Matthias") == 0)
Re: OnPlayerSpawn -
MenaceX^ - 18.03.2009
Did you spawn?..
Because it sets it in OnPlayerSpawn, I'd change it to OnPlayerConnect.
Re: OnPlayerSpawn -
GTA_Rules - 18.03.2009
OnPlayerConnect wouldn't work. And I tried using == 0 failed aswell.
Re: OnPlayerSpawn -
Danut - 18.03.2009
pawn Код:
new pName[24];
GetPlayerName(playerid, pName, sizeof(pName));
if (!strcmp(pName, "NAME", true))
{
Re: OnPlayerSpawn -
Pyrokid - 18.03.2009
Quote:
Originally Posted by MoroJr™
pawn Код:
new pName[24]; GetPlayerName(playerid, pName, sizeof(pName)); if (!strcmp(pName, "NAME", true)) {
|
Names are only 16 characters long. No need for 24.