Ich habe das Problem das die Randomspawns nicht gehen ![]()
Code
		
			new Float:Spawns1[5][3] =
{
 {-206.9998,2625.0051,63.1365},//1
 {-246.2489,2677.4973,62.6782},//2
 {-278.4613,2712.0225,62.6875},//3
 {-196.6265,2731.9648,62.6875},//4
 {-176.7528,2742.9612,62.6541}//5
};
	
	und dann kommt das bei mir:
Code
		
					
			public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)// They pressed the first button.
	{
	switch(dialogid)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
    	{
		case 1:// Our dialog!
			{
       		switch(listitem)// Checking which listitem was selected
    		{
    			case 0:// The first item listed
    			{
					SetPlayerColor(playerid,0x00FF00FF);
					SetPlayerPos(playerid,-222.5135,2618.1355,62.7403);
					GivePlayerWeapon(playerid,27,200);
					GivePlayerWeapon(playerid,24,200);
					SetPlayerSkin(playerid,285);
					new rSpawn;
					rSpawn = random(sizeof(Spawns1));
					SetPlayerPos(playerid,Spawns1[rSpawn][0],Spawns1[rSpawn][1],Spawns1[rSpawn][2],Spawns1[rSpawn][3],Spawns1[rSpawn][4]);
    			}
    			case 1: // The second item listed
    			{
    		    	SetPlayerColor(playerid,0x0000FFFF);
					SetPlayerPos(playerid,1.3332,1172.1268,19.4979);
					GivePlayerWeapon(playerid,27,200);
					GivePlayerWeapon(playerid,24,200);
					SetPlayerSkin(playerid,287);
    			}
    		}
			}
	}
	}
	return 1;
}
	
			Alles anzeigen
	dann Diesen Error:
Code
		
			D:\3.Weltkrieg\gamemodes\Weltkrieg.pwn(235) : error 032: array index out of bounds (variable "Spawns1")
	
	Ich verstehe das Leider Nicht ;O
Bitte um eure Hilfe ![]()
Danke im Vorraus ![]()
Mfg
Justin