Need help +rep Pls
#1

Код:
C:\Users\Nouman\Documents\gf1.pwn(1568) : error 017: undefined symbol "VehicleNames"
C:\Users\Nouman\Documents\gf1.pwn(1568) : error 036: empty statement
C:\Users\Nouman\Documents\gf1.pwn(1568) : error 017: undefined symbol "i"
C:\Users\Nouman\Documents\gf1.pwn(1568) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Quote:

stock GetVehicleModelIDFromName(const vname[])
{
for(new i=0; i < sizeof(VehicleNames); i++)
{
if(strfind(VehicleNames[i], vname, true) != -1) return i + 400;
}
return -1;
}

Reply
#2

help pls?
Reply
#3

read pls?
Reply
#4

Sorry ok thanks.
Reply
#5

Код:
stock GetVehicleModelIDFromName(const vname[])
{
for(new i=0; i < sizeof(VehicleNames); i++)
{
if(strfind(VehicleNames[i], vname, true) != -1) return i + 400;
}
return -1;
}
On top type:

new i;

Like that:

Код:
new i;
stock GetVehicleModelIDFromName(const vname[])
{
for(new i=0; i < sizeof(VehicleNames); i++)
{
if(strfind(VehicleNames[i], vname, true) != -1) return i + 400;
}
return -1;
}
On witch callback is this error 017: undefined symbol "VehicleNames"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)