#1

C:\Documents and Settings\Wouter\Bureaublad\SA-MP Scripting\pawno\CamperGM.pwn(307) : error 033: array must be indexed (variable "GarbageTrucks")

What does it mean, how to fix it?

Код:
new GarbageTrucks[3];
	if(vehicleid == GarbageTrucks)
	{
	ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Garbage & Trash Cooperation", "Would you like to Work as a Garbage Man?", "Yes", "No");
	}
	return 1;
}
Reply
#2

pawn Код:
new GarbageTrucks[3];
    if(vehicleid == GarbageTrucks[0] || vehicleid == GarbageTrucks[1] || vehicleid == GarbageTrucks[2])
    {
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Garbage & Trash Cooperation", "Would you like to Work as a Garbage Man?", "Yes", "No");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)