error 033: array must be indexed (variable "iscrim")
#1

Код:
public StartingGame2(playerid, vehicleid, seatid)
{
   	iscrim[Players] = 1;
   	if(iscrim == 1){
   	SetPlayerHealth(playerid, 50);
   	SendClientMessage(playerid, 0xE85C20FF, "You are the criminal!");
   	
   	
   	}
	else
	
   	
	SetPlayerPos(playerid,2138.9658,1463.4701,10.8203);
	SetPlayerHealth(playerid, 100);

	
	
}
This part of the code is selecting a random person to be the criminal out of everyone that is online

"Players" is the amount of people online which is done through Players++ and Players-- when user connects and disconnects



After that I will have to check if that player id is in the game and reselect a new random ID, I feel like I am over complicating things but it's the only way I could of
Reply


Messages In This Thread
error 033: array must be indexed (variable "iscrim") - by Dinoo - 26.03.2016, 20:32
Re: error 033: array must be indexed (variable "iscrim") - by Dinoo - 26.03.2016, 20:34
Re: error 033: array must be indexed (variable "iscrim") - by czerwony03 - 26.03.2016, 23:51

Forum Jump:


Users browsing this thread: 3 Guest(s)