17.03.2011, 23:41
Yeah, that's the problem.
My OnPlayerSpawn
And a snippet where SpawnPlayer(playerid) is:
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 ?
My OnPlayerSpawn
pawn Code:
public OnPlayerSpawn(playerid)
{
print("Onplayerspawn!");
TogglePlayerSpectating(playerid,0);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
return 1;
}
pawn Code:
//mysql field fetching
}
mysql_free_result();
SpawnPlayer(playerid);
SetPlayerName(playerid, SubAccount[playerid][Nick]);
SendClientMessage(playerid, GREEN, "Welcome and have fun ;)");
}
Anybody, any help ?