Problem with count event players - 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)
+--- Thread: Problem with count event players (
/showthread.php?tid=606200)
delete -
2k16 - 01.05.2016
Delete.
Respuesta: Problem with count players event -
Thewin - 01.05.2016
Try adding playerInfo[playerid][MODE] = unknown; before "SpawnPlayer"
Re: Respuesta: Problem with count players event -
2k16 - 01.05.2016
Quote:
Originally Posted by Thewin
Try adding playerInfo[playerid][MODE] = unknown; before "SpawnPlayer"
|
Still doesn't work.
Respuesta: Problem with count event players -
Thewin - 01.05.2016
the server at least show u this "** {d3d3d3}%s(%i) Telah Meninggalkan Last Man Standing (LMS)" ?
Re: Respuesta: Problem with count event players -
2k16 - 01.05.2016
Quote:
Originally Posted by Thewin
the server at least show u this "** {d3d3d3}%s(%i) Telah Meninggalkan Last Man Standing (LMS)" ?
|
Yes. That mean you have leave from last man standing.
Respuesta: Problem with count event players -
Thewin - 01.05.2016
Код:
countEvent(event)
{
new count = 0;
for(new i=0; i < MAX_PLAYERS; i++)
{
if(playerInfo[i][MODE] == event)
{
count++;
}
}
return count;
}
try