SpawnPlayer(playerid) doesn't call OnPlayerSpawn
#1

Yeah, that's the problem.

My OnPlayerSpawn
pawn Code:
public OnPlayerSpawn(playerid)
{
    print("Onplayerspawn!");
    TogglePlayerSpectating(playerid,0);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    return 1;
}
And a snippet where SpawnPlayer(playerid) is:
pawn Code:
//mysql field fetching
    }
    mysql_free_result();
    SpawnPlayer(playerid);
    SetPlayerName(playerid, SubAccount[playerid][Nick]);
    SendClientMessage(playerid, GREEN, "Welcome and have fun ;)");
}
Everything else, works just fine...Even SetPlayerName is reporting, that it changes the name, and I can see under the tab that my name has been changed. OnPLayerSpawn is just a random code..and imho it should work very well. There is even a debug print..but this doesn't show on console..

Anybody, any help ?
Reply


Messages In This Thread
SpawnPlayer(playerid) doesn't call OnPlayerSpawn - by actiwe - 17.03.2011, 23:41
Re: SpawnPlayer(playerid) doesn't call OnPlayerSpawn - by MP2 - 17.03.2011, 23:50
Re: SpawnPlayer(playerid) doesn't call OnPlayerSpawn - by actiwe - 18.03.2011, 10:44
Re: SpawnPlayer(playerid) doesn't call OnPlayerSpawn - by Alex.Cone - 18.03.2011, 11:33
Re: SpawnPlayer(playerid) doesn't call OnPlayerSpawn - by antonio112 - 18.03.2011, 13:36

Forum Jump:


Users browsing this thread: 2 Guest(s)