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

Hi,

Error:
Код:
error 033: array must be indexed (variable "CanChooseSkill")
Error Line:
Код:
CanChooseSkill[playerid] =1;
All Code:
Код:
else if(gTeam[playerid] >= 9)
	{
	    SendClientMessage(playerid,COLOR_WHITE,"CIVILIAN INFORMATION:");
	    SendClientMessage(playerid,COLOR_WHITE,"Please choose a skill from the menu below.");
            CanChooseSkill[playerid] =1;
            ShowPlayerDialog(playerid,DIALOG_CLASS,DIALOG_STYLE_LIST,"Choose a Job","Rapist\r\nDrug Dealer\r\nGun Dealer\r\nHitman\r\nCar Jacker\r\nThief\r\nTerrorist","Choose","Close");
            TogglePlayerControllable(playerid,0);
            new rnd = random(sizeof(SpawnPoints));
            SetPlayerPos(playerid,SpawnPoints[rnd][0],SpawnPoints[rnd][1],SpawnPoints[rnd][2]);
            SetPlayerFacingAngle(playerid,SpawnPoints[rnd][3]);
	    SetCameraBehindPlayer(playerid);
	}
Reply
#2

Show the line where you create the variable CanChooseSkill.
Reply
#3

Код:
new CanChooseSkill[MAX_PLAYERS];
Reply
#4

It probably isn't going to do anything, but try adding a space after the equals sign (=).

pawn Код:
CanChooseSkill[playerid] = 1;
Other than that, I'm really not sure why you're getting that error for that line.
Reply
#5

:/ Also not working.

BackGround:
It is a CnR, Class selection was a menu and i want to change it to a Dialog List.

Everything done but now it gives me this error. :/ Didnt give it with Menu
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)