Problem with purchasing vehicle
#5

If you want to insert the SQL ID, wouldn't you then use

PHP код:
VehInfo[veh][VID] = cache_insert_id(); // problematic line 
instead of
PHP код:
VehInfo[vehicleid][VID] = lastveh// problematic line 
since lastveh is the current server vehicle id? (as taken from your OnVehicleCreation thing)

Also this line wouldn't work, since your function "OnVehicleCreation" doesn't have extra arguments. For this line to work it would be "public OnVehicleCreation(playerid)" while it is "public OnVehicleCreation()"
PHP код:
mysql_tquery(mysqlquery"OnVehicleCreation""i"playerid); 
Reply


Messages In This Thread
Problem with purchasing vehicle - by TwinkiDaBoss - 28.11.2015, 02:19
Re: Problem with purchasing vehicle - by Aerotactics - 28.11.2015, 05:31
Re: Problem with purchasing vehicle - by Sew_Sumi - 28.11.2015, 06:02
Re: Problem with purchasing vehicle - by TwinkiDaBoss - 28.11.2015, 20:01
Re: Problem with purchasing vehicle - by CmZxC - 28.11.2015, 20:43
Re: Problem with purchasing vehicle - by TwinkiDaBoss - 01.12.2015, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)