10.11.2016, 07:10
How do I create command for this creategate system from mysql?
pawn Код:
stock CreateGate(Float:X, Float:Y, Float:Z, Float:grX, Float:grY, Float:grZ, Interior, VirtualWorld)
{
new gateid = GetUnusedGate();
if(gateid == -1) return print("[CreateGate] All slots are vacant, please reconfigure the maximum gates allowed."), 0;
new iQuery[250];
mysql_format(MySQLPipeline, iQuery, sizeof(iQuery), "INSERT INTO `GateInfo` (`ID`, `X`, `Y`, `Z`, `rX`, `rY`, `rZ`, `Interior`, `VirtualWorld`) VALUES (%d, %f, %f, %f, %f, %f, %f, %d, %d)", gateid, X, Y, Z, grX, grY, grZ, Interior, VirtualWorld);
mysql_tquery(MySQLPipeline, iQuery);
ReloadGate(gateid, false);
return 1;
}