24.05.2011, 18:13
1st Script:
It's selecting from the playervehicle's database, where the "ID" is the playersid (Which is RANDOM). - I don't see how that works, it should be:
Don't know if that is right ..
2nd Script:
Shouldnt you use:
I'm not sure if i'm right or wrong as i dont even understand your script .. or what you want it to do.
pawn Код:
format(sql, sizeof(sql), "SELECT * FROM playervehicles WHERE ID = %d", i);
pawn Код:
// Get the player's name & store in int 'name'.
format(sql, sizeof(sql), SELECT * FROM playervehicles WHERE owner='%s', name);
2nd Script:
pawn Код:
format(sql, sizeof(sql), "SELECT COUNT(*) FROM playervehicles");
pawn Код:
//Get player's name & store as 'name'
format(sql, sizeof(sql), "SELECT * FROM playervehicles WHERE owner = '%s'", name");