SA-MP Forums Archive
any idea why this isnt working? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: any idea why this isnt working? (/showthread.php?tid=224647)



any idea why this isnt working? - THE_KNOWN - 12.02.2011

Код:
LoadDcar()
{
	new q[128];
	format(q,128,"SELECT * FROM dealer");
	mysql_query(q);
	mysql_store_result();
	new tp;
	tp=mysql_num_rows();
	for(new i=mysql_retrieve_row();i<tp;i++)
	    {
	    new field[7][32];
	    mysql_fetch_row_format(q,"|");
		explode(q,field,"|");
		new tmp,mdl,Float:x,Float:y,Float:z,Text3D:txt,p,Float:a;
		new s[32];
		mdl=strval(field[1]);
		x=strval(field[2]);
		y=strval(field[3]);
		z=strval(field[4]);
		p=strval(field[5]);
		a=strval(field[6]);
		tmp=CreateVehicle(mdl,x,y,z+1,a,0,1,-1);
		price[tmp]=p;
		format(s,32,"Price:%d",p);
		txt=Create3DTextLabel(s,1,0.0,0.0,0.0,60.0,-1,0);
		Attach3DTextLabelToVehicle(txt,tmp,0.0,0.0,0.0);
		}
	mysql_free_result();
	return 1;
}
no errors


Re: any idea why this isnt working? - Medal Of Honor team - 12.02.2011

why? what is the problem?


Re: any idea why this isnt working? - Unknown123 - 12.02.2011

Quote:
Originally Posted by Medal Of Honor team
Посмотреть сообщение
why? what is the problem?
I guess the Function dont work...


Re: any idea why this isnt working? - THE_KNOWN - 12.02.2011

yea the cars dont load