error 033: array must be indexed (variable "Checkpoint") error 033: array must be indexed (variable "Checkpoint1") error 033: array must be indexed (variable "Checkpoint2") error 033: array must be indexed (variable "Checkpoint3") new Checkpoint [MAX_PLAYERS]; new Checkpoint1 [MAX_PLAYERS]; new Checkpoint2 [MAX_PLAYERS]; new Checkpoint3 [MAX_PLAYERS];
Checkpoint = CreateDynamicCP(1332.2339,1254.7034,10.8203, 3, -1, -1, -1, 100);
Checkpoint1 = CreateDynamicCP(283.1432,2054.5105,17.6406, 3, -1, -1, -1, 100);
Checkpoint2 = CreateDynamicCP(2297.7004,2473.8352,3.2734, 3, -1, -1, -1, 100);
Checkpoint3 = CreateDynamicCP(1746.8922,2066.1594,10.8203, 3, -1, -1, -1, 100);
You are missing the [playerid].
And even when you do that it still won't work cause you don't have the playerid parameter inside the ongamemodeinti function... By the way why are you even using an array for that? |
error 033: array must be indexed (variable "Checkpoint") error 017: undefined symbol "playerid" error 033: array must be indexed (variable "Checkpoint1") error 017: undefined symbol "playerid" error 033: array must be indexed (variable "Checkpoint2") error 017: undefined symbol "playerid" error 033: array must be indexed (variable "Checkpoint3") error 017: undefined symbol "playerid"
Checkpoint = CreateDynamicCP(playerid,1332.2339,1254.7034,10.8203, 3, -1, -1, -1, 100); Checkpoint1 = CreateDynamicCP(playerid,283.1432,2054.5105,17.6406, 3, -1, -1, -1, 100); Checkpoint2 = CreateDynamicCP(playerid,2297.7004,2473.8352,3.2734, 3, -1, -1, -1, 100); Checkpoint3 = CreateDynamicCP(playerid,1746.8922,2066.1594,10.8203, 3, -1, -1, -1, 100);
Checkpoint[playerid] = CreateDynamicCP(1332.2339,1254.7034,10.8203, 3, -1, -1, -1, 100); Checkpoint1playerid] = CreateDynamicCP(283.1432,2054.5105,17.6406, 3, -1, -1, -1, 100); Checkpoint2playerid] = CreateDynamicCP(2297.7004,2473.8352,3.2734, 3, -1, -1, -1, 100); Checkpoint3playerid] = CreateDynamicCP(1746.8922,2066.1594,10.8203, 3, -1, -1, -1, 100);
You are missing the [playerid].
And even when you do that it still won't work cause you don't have the playerid parameter inside the ongamemodeinti function... By the way why are you even using an array for that? |