Problem with plate
#1

pawn Код:
CMD:plate(playerid, params[]) {
    if(playerVariables[playerid][pAdminLevel] >= 4) {
        if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/plate [number plate]");
        else if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You must be inside the vehicle that you wish to change the model of.");
       
        new
            string[256],
            Float:cwx2,
            Float:cwy2,
            Float:cwz2,
            currentveh = GetPlayerVehicleID(playerid);
        GetVehiclePos(currentveh, cwx2, cwy2, cwz2);

        SetVehicleNumberPlate(currentveh,"params");
        mysql_real_escape_string(params, vehicleVariables[currentveh][vVehicleNumberP]);
       
        saveVehicle(currentveh);

        mysql_query(string);
        SetVehicleToRespawnEx(currentveh);
        SetVehiclePos(currentveh, cwx2+1, cwy2, cwz2);
        return 1;
    }
    return 1;
}
Where is the problem? In game i have the number plate, and in database not.
Reply


Messages In This Thread
Problem with plate - by SILENT! - 22.06.2011, 15:26
Re: Problem with plate - by SILENT! - 22.06.2011, 16:19
Re: Problem with plate - by SILENT! - 22.06.2011, 16:57
Re: Problem with plate - by SILENT! - 22.06.2011, 20:46
Re: Problem with plate - by SpiderWalk - 22.06.2011, 20:51
Re: Problem with plate - by SILENT! - 23.06.2011, 09:27
Re: Problem with plate - by [TS]Ricky - 23.06.2011, 11:28
Re: Problem with plate - by Sasino97 - 23.06.2011, 11:32
Re: Problem with plate - by SILENT! - 23.06.2011, 13:12
Re: Problem with plate - by Max_Coldheart - 23.06.2011, 13:18

Forum Jump:


Users browsing this thread: 2 Guest(s)