Vehicle system example?
#1

Hi, can anyone show me a short example of loading vehicle's from MYSQL db and checking on OnPlayerEnterVehicle if the car belongs to owner? I don't need any working variables just show me how should it look like, becouse i can't get my vehicle system work corectly...
Reply
#2

i used for loop (with mysql_num_rows() function) ands sscanf to load it from mysql table to variables
to detect if player owns vehicle i used strcmp with player name and vehicle owner name under OnPlayerStateChange (if newstate == PLAYER_STATE_DRIVER)
I hope this helps you.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)