OnPlayerSpawn
#1

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

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

Did you spawn?..
Because it sets it in OnPlayerSpawn, I'd change it to OnPlayerConnect.
Reply
#4

OnPlayerConnect wouldn't work. And I tried using == 0 failed aswell.
Reply
#5

pawn Код:
new pName[24];
GetPlayerName(playerid, pName, sizeof(pName));
if (!strcmp(pName, "NAME", true))
{
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)