Vehicle Create MYSQL
#1

Код:
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 ++;
WHat's the problem?
Vehicle X,Y,Z random... WHY??
Reply


Messages In This Thread
Vehicle Create MYSQL - by kexy96 - 05.08.2016, 14:35
Re: Vehicle Create MYSQL - by Mencent - 05.08.2016, 14:51
Re: Vehicle Create MYSQL - by kexy96 - 05.08.2016, 14:57
Re: Vehicle Create MYSQL - by Mencent - 05.08.2016, 15:00
Re: Vehicle Create MYSQL - by kexy96 - 05.08.2016, 15:05

Forum Jump:


Users browsing this thread: 1 Guest(s)