#1

"error 006: must be assigned to an array"

Код:
new tmission[][] =
{
	1,
	2,
	3,
	4,
	5,
	6,
	7,
	8,
	9,
	10,
	11,
	12
};

dcmd_work(playerid, params[])
{
	#pragma unused params
	if(PlayerData[playerid][working] == 1){
	    SendClientMessage(playerid, GREY, "You are already working");
	    return 1;
	}
	if(PlayerData[playerid][working] == 0){
	    new rand = random(sizeof(tmission));
	    PlayerData[playerid][miss] = tmission[rand];    // ERROR LINE
	    if(PlayerData[playerid][miss] == 1){
	        SendClientMessage(playerid,CYAN, "Drive to LS Bince Clothing Store to get your cargo");
	        SendClientMessage(playerid,CYAN, "Order: Deliver Jackets to SF Construction");
	        SendClientMessage(playerid,CYAN, "Award: 10578$");
		 }
	}
	return 1;
}
what's wrong with this?
Reply
#2

Use:

new tmission[] =
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)