if(VehicleInfo[vehicleid][owner] == regid){ new Float:Pos[4];GetVehiclePos(vehicleid,Pos[0],Pos[1],Pos[2]);GetVehicleZAngle(vehicleid,Pos[3]);VehicleInfo[vehicleid][spawnx] = Pos[0];VehicleInfo[vehicleid][spawny] = Pos[1];VehicleInfo[vehicleid][spawnz] = Pos[2];VehicleInfo[vehicleid][angle] = Pos[3];format(query,sizeof(query),\"UPDATE `vehicles` SET x = %f, y = %f, z = %f, angle = %f, WHERE `sqlid` = %i\",Pos[0],Pos[1],Pos[2],Pos[3],VehicleInfo[vehicleid][sqlid]);mysql_query(query);DestroyVehicle(vehicleid);CreateVehicle(VehicleInfo[vehicleid][model],VehicleInfo[vehicleid][spawnx],VehicleInfo[vehicleid][spawny],VehicleInfo[vehicleid][spawnz],VehicleInfo[vehicleid][angle],VehicleInfo[vehicleid][color1],VehicleInfo[vehicleid][color2],0);}
if(VehicleInfo[vehicleid][owner] == regid) { new Float:Pos[4]; GetVehiclePos(vehicleid,Pos[0],Pos[1],Pos[2]); GetVehicleZAngle(vehicleid,Pos[3]); VehicleInfo[vehicleid][spawnx] = Pos[0]; VehicleInfo[vehicleid][spawny] = Pos[1]; VehicleInfo[vehicleid][spawnz] = Pos[2]; VehicleInfo[vehicleid][angle] = Pos[3]; format(query,sizeof(query),\"UPDATE `vehicles` SET `x` = \'%f\', `y` = \'%f\', `z` = \'%f\', `angle` = \'%f\', WHERE `sqlid` = \'%i\'\",Pos[0],Pos[1],Pos[2],Pos[3],VehicleInfo[vehicleid][sqlid]); mysql_query(query); DestroyVehicle(vehicleid); CreateVehicle(VehicleInfo[vehicleid][model],VehicleInfo[vehicleid][spawnx],VehicleInfo[vehicleid][spawny],VehicleInfo[vehicleid][spawnz],VehicleInfo[vehicleid][angle],VehicleInfo[vehicleid][color1],VehicleInfo[vehicleid][color2],0); }
if(VehicleInfo[vehicleid][owner] == regid) { new Float:Pos[4]; GetVehiclePos(vehicleid,Pos[0],Pos[1],Pos[2]); GetVehicleZAngle(vehicleid,Pos[3]); VehicleInfo[vehicleid][spawnx] = Pos[0]; VehicleInfo[vehicleid][spawny] = Pos[1]; VehicleInfo[vehicleid][spawnz] = Pos[2]; VehicleInfo[vehicleid][angle] = Pos[3]; format(query,sizeof(query),\"UPDATE `vehicles` SET `x` = \'%f\', `y` = \'%f\', `z` = \'%f\', `angle` = \'%f\' WHERE `sqlid` = \'%i\'\",Pos[0],Pos[1],Pos[2],Pos[3],VehicleInfo[vehicleid][sqlid]); mysql_query(query); DestroyVehicle(vehicleid); CreateVehicle(VehicleInfo[vehicleid][model],VehicleInfo[vehicleid][spawnx],VehicleInfo[vehicleid][spawny],VehicleInfo[vehicleid][spawnz],VehicleInfo[vehicleid][angle],VehicleInfo[vehicleid][color1],VehicleInfo[vehicleid][color2],0); }
mysql_log.txt mit ír ki?Szerk.:if(VehicleInfo[vehicleid][owner] == regid) { new Float:Pos[4]; GetVehiclePos(vehicleid,Pos[0],Pos[1],Pos[2]); GetVehicleZAngle(vehicleid,Pos[3]); VehicleInfo[vehicleid][spawnx] = Pos[0]; VehicleInfo[vehicleid][spawny] = Pos[1]; VehicleInfo[vehicleid][spawnz] = Pos[2]; VehicleInfo[vehicleid][angle] = Pos[3]; format(query,sizeof(query),\"UPDATE `vehicles` SET `x` = \'%f\', `y` = \'%f\', `z` = \'%f\', `angle` = \'%f\' WHERE `sqlid` = \'%i\'\",Pos[0],Pos[1],Pos[2],Pos[3],VehicleInfo[vehicleid][sqlid]); mysql_query(query); DestroyVehicle(vehicleid); CreateVehicle(VehicleInfo[vehicleid][model],VehicleInfo[vehicleid][spawnx],VehicleInfo[vehicleid][spawny],VehicleInfo[vehicleid][spawnz],VehicleInfo[vehicleid][angle],VehicleInfo[vehicleid][color1],VehicleInfo[vehicleid][color2],0); }Ennek mûködnie kell, az utolsó után nem kell vesszõ