Originally Posted by Prokill911
Firstly..
Why are you using "%i" When you're not referencing / passing a playerid to another function
Secondly... You already created the value "Faction" When it's defined in the stock it's self...
PHP код:
stock SaveFactionVehicle(Model, Float:x, Float:y, Float:z, Float:a, ColorA, ColorB, Faction)
Код:
new Faction; <-- Delete that,
CHANGE
PHP код:
format(Query, sizeof(Query), "INSERT INTO `dynamicvehicles` (ModelID, posX, posY, posZ, posA, ColorA, ColorB, Faction) VALUES(%d, %f, %f, %f, %f, %i, %i, %i)",
INTO
PHP код:
format(Query, sizeof(Query), "INSERT INTO `dynamicvehicles` (ModelID, posX, posY, posZ, posA, ColorA, ColorB, Faction) VALUES(%d, %f, %f, %f, %f, %d, %d, %d)",
should work
|