Jump to content
  • 0

mysql loading cars


DreiVian

Question

Problema intalnita (descriere): Nu reusesc nici cum sa incarc masinile din baza de date pe server. M-am chinui de la 9 pana la 23:34
Ero(area / rile) / warning-(ul / urile):

Spoiler

Current directory: C:\Users\Home\Desktop\WiDuAlK\gamemodes
WiD.pwn(343) : warning 213: tag mismatch
WiD.pwn(343) : warning 213: tag mismatch
WiD.pwn(344) : warning 213: tag mismatch
WiD.pwn(344) : warning 213: tag mismatch
WiD.pwn(345) : warning 213: tag mismatch
WiD.pwn(345) : warning 213: tag mismatch
WiD.pwn(348) : warning 213: tag mismatch
WiD.pwn(348) : warning 213: tag mismatch
WiD.pwn(348) : warning 213: tag mismatch
WiD.pwn(348) : warning 213: tag mismatch
WiD.pwn(348) : warning 213: tag mismatch
WiD.pwn(348) : warning 213: tag mismatch
WiD.pwn(348) : warning 213: tag mismatch
WiD.pwn(348) : warning 213: tag mismatch
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


14 Warnings.
================ READY ================

 


Liniile de cod / sursa / script-ul(obligatoriu):

 

enum cInfo
{
	cID,
	cModel,
	cFloat:x,
	cFloat:y,
	cFloat:z,
	ccol1,
	ccol2
};
new CarInfo[MAX_VEHICLES][cInfo];

forward incarca();
public incarca()
{
	new temporar[200];
	for(new c=1; c < cache_num_rows(); c++)
	{
		CarInfo[c][cModel]		= cache_get_field_content_int(0,"VehicleM");
		CarInfo[c][cFloat:x]	= cache_get_field_content(0, "VehicleX",temporar);
		CarInfo[c][cFloat:x]	= cache_get_field_content(0, "VehicleY",temporar);
		CarInfo[c][cFloat:x]	= cache_get_field_content(0, "VehicleZ",temporar);
		CarInfo[c][ccol1] 		= cache_get_field_content_int(0,"col1");
		CarInfo[c][ccol2] 		= cache_get_field_content_int(0,"col2");
		CreateVehicle(CarInfo[c][cModel],CarInfo[c][cFloat:x],CarInfo[c][cFloat:y],CarInfo[c][cFloat:z],CarInfo[c][cFloat:z],CarInfo[c][ccol1],CarInfo[c][ccol2], -1);
	}
	printf(" Loaded Cars with  ms");
	return 1;
}

 

Ati incercat sa rezolvati singur?:  DA si inca incerc :)

Edited by DreiVian
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Ai pus "cFloat:x" dar nu i-ai setat tipul Float:cFloat:x ...

Si unde ai query ca eu nu-l vad aici :) si vezi ca trebuie pus "cache_get_field_float"

De asemenea cache_get_field_content_int(nu pune 0... pune c-ul definit in loop :)

cache_get_field_content_int( c, "VehicleM" );

 
Edited by SoNNy.sys
  • Upvote 1

Sinner.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.