[HELP] error 033: array must be indexed (variable "VfModel")
#1

Good night Guys i have this error :/


Код:
Gasolina.pwn(481) : error 033: array must be indexed (variable "VfModel")
Gasolina.pwn(484) : error 033: array must be indexed (variable "VfModel")
Gasolina.pwn(487) : error 033: array must be indexed (variable "VfModel")
Gasolina.pwn(490) : error 033: array must be indexed (variable "VfModel")
Gasolina.pwn(493) : error 033: array must be indexed (variable "VfModel")
Gasolina.pwn(496) : error 033: array must be indexed (variable "VfModel")
Gasolina.pwn(506) : error 033: array must be indexed (variable "VfModel")
Gasolina.pwn(509) : error 033: array must be indexed (variable "VfModel")
Gasolina.pwn(512) : error 033: array must be indexed (variable "VfModel")
Gasolina.pwn(515) : error 033: array must be indexed (variable "VfModel")
Gasolina.pwn(518) : error 033: array must be indexed (variable "VfModel")
Gasolina.pwn(521) : error 033: array must be indexed (variable "VfModel")



In top i have

Код:
new VfModel[128];
THE LINE CODE START AT 478 finish at 525

Код:
stock VerificarTipodeG()
{
 new t[128];
 if(VfModel == "Esportivo"){
    t = "Gasolina";
 }
 if(VfModel == "Comum"){
    t = "GNV";
 } 
 if(VfModel == "OffRoad"){
    t = "Gasolina";
 }
 if(VfModel == "Motocicleta"){
    t = "Gasolina";
 } 
 if(VfModel == "Caminhao"){
    t = "Diesel";
 }
 if(VfModel == "Aeronave"){
    t = "AVGas";
 }
 Vftgas = t;
 return;
}

stock VerificarPotencia()
{

if(VfModel == "Esportivo"){
  VfPoten = 3;
}
if(VfModel == "Comum"){
  VfPoten = 1;
}
if(VfModel == "OffRoad"){
  VfPoten = 3;
}
if(VfModel == "Motocicleta"){
  VfPoten = 1;
}
if(VfModel == "Caminhao"){
  VfPoten = 6;
}
if(VfModel == "Aeronave"){
  VfPoten = 12;
}
return;  
}
Reply
#2

https://sampwiki.blast.hk/wiki/Strcmp
Reply
#3

Niceeee it's WORKED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)