SA-MP Forums Archive
Removed player due to error + other opcode - 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: Removed player due to error + other opcode (/showthread.php?tid=97642)



Removed player due to error + other opcode - Mikep. - 15.09.2009


This is the code that was executed at the time of the warnings:

pawn Код:
DMS[playerid] = 0;
DM[playerid] = 0;
DML[playerid] = 0;
format(string,sizeof(string),"%s (%i) has left the DM stadium.",ReturnPlayerName(playerid),playerid);
SendClientMessageToAllBut(playerid,COLOR_LBLUE,string);
SendClientMessage(playerid, COLOR_LBLUE, "** Left DM Stadium!");
SetPlayerArmour(playerid, 0);
DisablePlayerCheckpoint(playerid);
OnPlayerSpawn(playerid);
3 of us entered the checkpoint at the same time. No warnings if just one player uses it.


Re: Removed player due to error + other opcode - Giacomand - 15.09.2009

You're using OnPlayerSpawn (a callback which calls when a player spawns) instead of SpawnPlayer(playerid);

Replace OnPlayerSpawn(playerid); with SpawnPlayer(playerid);


Re: Removed player due to error + other opcode - Mikep. - 15.09.2009

OnPlayerSpawn(playerid) is intentional. I want to call that, because in there I have code for spawnpoints.

I have used it since before 0.2x and had no problems.

It works when only one player uses it.


Re: Removed player due to error + other opcode - Giacomand - 15.09.2009

Comment out OnPlayerSpawn(playerid); and then test it.


Re: Removed player due to error + other opcode - Mikep. - 15.09.2009

This topic is reporting that as a bug, not asking how to fix it.

I will try what you said though, and see if that is the problem.