Please help me
#6

Quote:
Originally Posted by GangstaSunny.
View Post
He is checking nothing. Because his function is bullshit.

Code:
stock GetVehicleModelFromName(const vname[])
{
for(new i = 0; i < 211; i++)
{
if(strfind(VehicleNames[i], vname, true) != -1) 
{
return i + 400;
}
}
return -1;
}
That's not even his code lol.

PHP Code:
    if (sscanf(vehicle_name"i"vehicleid)) 
    { 
        for (new 
0sizeof (VehicleNames); i++) 
        { 
            if (
strfind(VehicleNames[i], vehicle_nametrue) != -1
            { 
                
vehicleid 400
            } 
        } 
    } 
    else if (!(
400 <= vehicleid <= 611)) vehicleid = -1
if (sscanf(vehicle_name, "i", vehicleid))
Checking if vehicle_name is a string

other wise check if the vehicle id is between 400 and 611
else if (!(400 <= vehicleid <= 611))


So his code seems to be fine to me.
Reply


Messages In This Thread
Please help me - by Imbalo - 12.04.2017, 11:27
Re: Please help me - by Meller - 12.04.2017, 11:49
Re: Please help me - by GangstaSunny. - 12.04.2017, 11:51
Re: Please help me - by Meller - 12.04.2017, 11:53
Re: Please help me - by GangstaSunny. - 12.04.2017, 12:11
Re: Please help me - by Meller - 12.04.2017, 12:36
Re: Please help me - by GangstaSunny. - 12.04.2017, 12:42
Re: Please help me - by Spoookymon - 12.04.2017, 12:51
Re: Please help me - by Imbalo - 12.04.2017, 16:18
Re: Please help me - by Meller - 12.04.2017, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)