MySQL vs for()
#5

PHP Code:
new id=Iter_Free(fObjects);
if(
id==-1)return scm(pid,-1,"No free slot to add object!");
Iter_Add(fObjects,id);

new 
s[200];
format(s,sizeof(s),"INSERT INTO objects(mid,x,y,z,rx,ry,rz) VALUES('%d','%f','%f','%f','%f','%f','%f')",mid,x,y,z,rx,ry,rz);
new 
Cache:cq=mysql_query(sc,s);
Object[id][sid]=cache_insert_id();
cache_delete(cq); 
Reply


Messages In This Thread
MySQL vs for() - by corne - 14.12.2016, 15:34
Re: MySQL vs for() - by Vince - 14.12.2016, 16:04
Re: MySQL vs for() - by PrO.GameR - 14.12.2016, 19:38
Re: MySQL vs for() - by SickAttack - 14.12.2016, 19:46
Re: MySQL vs for() - by CodeStyle175 - 14.12.2016, 20:22
Re: MySQL vs for() - by NeXoR - 14.12.2016, 20:33
Re: MySQL vs for() - by SickAttack - 14.12.2016, 21:18
Re: MySQL vs for() - by NeXoR - 15.12.2016, 17:24
Re: MySQL vs for() - by SickAttack - 16.12.2016, 00:14
Re: MySQL vs for() - by corne - 17.12.2016, 12:05

Forum Jump:


Users browsing this thread: 1 Guest(s)