/lastdriver help
#2

Try this

pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
        {
            new query[512], vehicleid2;
            format(query, sizeof(query), "UPDATE `vehicles` SET `LastDriver`=%s WHERE `VehicleID`=%d", pName(playerid), vehicleid2);
            mysql_query(query);
        }
And in

pawn Код:
format(query, sizeof(query), "SELECT * FROM `vehicles` WHERE `LastDriver` = '%s' AND `VehicleID` = sha1('%s')", vehicleid);
            mysql_query(query);
use "SELECT `LastDriver` FROM ....

So you can use more simple

mysql_fetch_row(name);
format(string, sizeof(string), "The last driver of this %s was {FF0000}%s{FFFFFF}", GetVehicleName(GetPlayerVehicleID(playerid)), name);
Reply


Messages In This Thread
/lastdriver help - by Mitchy - 20.12.2013, 13:33
Re: /lastdriver help - by ikey07 - 20.12.2013, 13:39
Re: /lastdriver help - by Mitchy - 20.12.2013, 13:47
Re: /lastdriver help - by Mitchy - 20.12.2013, 13:52
Re: /lastdriver help - by ikey07 - 20.12.2013, 14:08
Re: /lastdriver help - by cessil - 20.12.2013, 14:09
Re: /lastdriver help - by Mitchy - 20.12.2013, 14:18
Re: /lastdriver help - by tyler12 - 20.12.2013, 14:57
Re: /lastdriver help - by tyler12 - 20.12.2013, 15:20
Re: /lastdriver help - by DemME - 20.12.2013, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)