error 033: array must be indexed
#1

What the hell is coming here? HELP ME Plesae

I Got 4 erros for I put like this

Код:
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];
The Codes ... I'm putting this Checkpoints at public OnGameModeInit()

PHP код:
    Checkpoint CreateDynamicCP(1332.2339,1254.7034,10.82033, -1, -1, -1100);
    
Checkpoint1 CreateDynamicCP(283.1432,2054.5105,17.64063, -1, -1, -1100);
    
Checkpoint2 CreateDynamicCP(2297.7004,2473.8352,3.27343, -1, -1, -1100);
    
Checkpoint3 CreateDynamicCP(1746.8922,2066.1594,10.82033, -1, -1, -1100); 
Reply
#2

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?
Reply
#3

Quote:
Originally Posted by Runn3R
Посмотреть сообщение
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?
Hello Dear When I adding playerid it I Got many Errors ... see

Код:
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"
.... help

I did This
Код:
    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);
Reply
#4

Here dude:

Код:
    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);
EDIT: You just forgot the [playerid].
Reply
#5

Quote:
Originally Posted by Runn3R
Посмотреть сообщение
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?
Fix your arrays.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)