05.08.2016, 14:35
Код:
new Float:x, Float:y, Float:z, Float:a; new string[80] , model, count; GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a); vData[count][vehModel] = model; model = strval(inputtext); format(string, sizeof(string), "Jбrmű elkйszнtve! Model: %d", model); SendClientMessage(playerid, -1, string); new query[2000]; vData[count][vehID] = count; vData[count][vehModel] = model; mysql_format(mysql, query, sizeof(query), "INSERT INTO `vehicle` (`model`, `posX`, `posY`, `posZ`, `posA`) VALUES ('%d', '%f', '%f', '%f', '%f')", model, x, y, z, a); mysql_tquery(mysql, query); count ++;
Vehicle X,Y,Z random... WHY??