SA-MP Forums Archive
MySQL Help? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL Help? (/showthread.php?tid=358164)



MySQL Help? - Jarok - 09.07.2012

Can anyone help with this MySQL Help, I got this table;


But how would I make a command /saveveh, and it would save this to the table? (I know how to load it on GameModeInit)


Re: MySQL Help? - Jarok - 09.07.2012

I started the command but I dunno how I would do it from here;
pawn Код:
CMD:saveveh(playerid, params[])
{
    if(playerVariables[playerid][pAdmin] >= 3)
    (
        new szQuery[128];
        format(szQuery, sizeof(szQuery), "UPDATE vehicles INSERT vModel = '%d' AND
    }
    return 1;
}