Problem in my vehicle system.
#1

OnGameModeInit:
pawn Код:
for(new v=0; v<sizeof(vInfo); v++)
    {
        format(mysql, sizeof(mysql), "SELECT * FROM `vehicles` WHERE `VID`=%d", v);
        mysql_query(mysql);
        mysql_store_result();
        new result[200];
        if(mysql_fetch_row_format(result))
        {
            sscanf("p<|>e<isiiiiiis[15]fffii>", vInfo[v]);
            CreateVehicle(vInfo[v][vModel], vInfo[v][vX], vInfo[v][vY], vInfo[v][vZ], 1.0, vInfo[v][vColor1], vInfo[v][vColor2], 1000);
        }
    }
    mysql_free_result();
It doesn't give any errors but it won't load any vehicles neither, help please..
Reply


Messages In This Thread
Problem in my vehicle system. - by printer - 14.01.2012, 13:27
Re: Problem in my vehicle system. - by Mean - 14.01.2012, 13:30
Re: Problem in my vehicle system. - by printer - 14.01.2012, 13:38
Re: Problem in my vehicle system. - by Mean - 14.01.2012, 14:06
Re: Problem in my vehicle system. - by printer - 14.01.2012, 15:58
Re: Problem in my vehicle system. - by Mean - 14.01.2012, 16:00
Re: Problem in my vehicle system. - by Mean - 14.01.2012, 16:03
Re: Problem in my vehicle system. - by printer - 14.01.2012, 16:32
Re: Problem in my vehicle system. - by Mean - 14.01.2012, 16:56
Re: Problem in my vehicle system. - by printer - 14.01.2012, 17:31

Forum Jump:


Users browsing this thread: 1 Guest(s)