SA-MP Forums Archive
[ERROR]: Ghost Rider - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [ERROR]: Ghost Rider (/showthread.php?tid=415874)



[ERROR]: Ghost Rider - pinpon - 15.02.2013

Hola,Bueno me sale este error:

pawn Код:
error 033: array must be indexed (variable "grider")
Cуdigo:

pawn Код:
for(new i=0; i < MAX_PLAYERS+1; i++){
if(grider[0]){
DestroyObject(grider[i][0]);
DestroyObject(grider[i][1]);
DestroyObject(grider[i][2]);
grider[i][0] = 0;
}
}
Desde ya,muchas gracias.


Respuesta: [ERROR]: Ghost Rider - JustBored - 15.02.2013

pawn Код:
for(new i=0; i < MAX_PLAYERS+1; i++){
if(grider[i]){
DestroyObject(grider[i][0]);
DestroyObject(grider[i][1]);
DestroyObject(grider[i][2]);
grider[i][0] = 0;
}
return 1; // brake; cualquiera de los 2
}



Respuesta: [ERROR]: Ghost Rider - pinpon - 15.02.2013

Quote:
Originally Posted by JustBored
Посмотреть сообщение
pawn Код:
for(new i=0; i < MAX_PLAYERS+1; i++){
if(grider[i]){
DestroyObject(grider[i][0]);
DestroyObject(grider[i][1]);
DestroyObject(grider[i][2]);
grider[i][0] = 0;
}
return 1; // brake; cualquiera de los 2
}
Omg,thanks.


Re: [ERROR]: Ghost Rider - Daniel-92 - 15.02.2013

Quita el return 1; que pusiste y lo copias asн.
pawn Код:
for(new i=0; i < MAX_PLAYERS+1; i++){
    if(grider[i][0]){
        DestroyObject(grider[i][0]);
        DestroyObject(grider[i][1]);
        DestroyObject(grider[i][2]);
        grider[i][0] = 0;
    }
}