29.06.2012, 21:52
I might just be tired and might not spot a (simple) mistake, but seriously, you have 1120 posts and run your own roleplay server (?). Learn to DEBUG your code.
1. See how many rows the script returns (printf("%d", mysql_num_rows())) after storing the result.
2. See what data is retrieved from each row (print retrieved data prior to the CreateVehicle line to determine and compare with the database to see if all data is retrieved correctly).
3. What kind a notation is the "OwnedCar(newcar) = vID;" line? Is it a function or a macro of some sort? If not then this must be something I've never seen before.
4. Print the newcar value.
1. See how many rows the script returns (printf("%d", mysql_num_rows())) after storing the result.
2. See what data is retrieved from each row (print retrieved data prior to the CreateVehicle line to determine and compare with the database to see if all data is retrieved correctly).
3. What kind a notation is the "OwnedCar(newcar) = vID;" line? Is it a function or a macro of some sort? If not then this must be something I've never seen before.
4. Print the newcar value.