Hi,
I have a problem getting the position and spawn the pickups for the properties. When the server call the function, the pickups in the server doesn't spawn. It does not give me any errors.
Here the function:
function LoadProps()
{
if ( CountProps() != 0 )
{
local q = sqlite_query( db, "SELECT * FROM Properties WHERE ID='%'" ), pos;
while ( sqlite_column_data( q, 0 ) )
{
local coords = sqlite_column_data( q, 5 );
CreatePickup( 1361, Vector( GetTok( coords, " ", 1 ).tofloat(), GetTok( coords, " ", 2 ).tofloat(), GetTok( coords, " ", 3 ).tofloat() ) );
sqlite_next_row( q );
}
sqlite_free( q );
}
}
I'm newbie in SQLite...