Pickups aren't showing.
#1

The pickups won't show at all, I have information in the table also.

Код:
stock LoadProperties()
{
  mysql_real_escape_string(string, string);
  mysql_query("SELECT * FROM Properties");
  mysql_store_result();
  if(mysql_num_rows() == 0) { return 1; }
  while(mysql_fetch_row(array, "|"))
  {
 	  printf(array);
 	  PropertyInfo[Name] = strval(array[0]);
 	  PropertyInfo[Owner] = strval(array[1]);
 	  PropertyInfo[Price] = strval(array[2]); 
 	  PropertyInfo[X] = floatstr(array[3]);
 	  PropertyInfo[Y] = floatstr(array[4]);
 	  PropertyInfo[Z] = floatstr(array[5]);
 	  PropertyInfo[EX] = floatstr(array[6]);
 	  PropertyInfo[EY] = floatstr(array[7]);
 	  PropertyInfo[EZ] = floatstr(array[8]);
 	  CreatePickup(1272, 23, PropertyInfo[X], PropertyInfo[Y], PropertyInfo[Z]);
  }
  mysql_free_result();
  return 1;
}
Reply
#2

virtualworld The virtual world ID of the pickup. Use -1 to make the pickup show in all worlds.

Add -1 at the end and see what happens.
Reply
#3

Quote:
Originally Posted by CalgonX
virtualworld The virtual world ID of the pickup. Use -1 to make the pickup show in all worlds.

Add -1 at the end and see what happens.
Still no, this is the new CreatePickup

Код:
CreatePickup(1272, 23, PropertyInfo[X], PropertyInfo[Y], PropertyInfo[Z], -1);
Reply
#4

Logic Error - EX standing for Exterior X, so you're spawning your pickups in the interior?
Reply
#5

Quote:
Originally Posted by CalgonX
Logic Error - EX standing for Exterior X, so you're spawning your pickups in the interior?
No, EX was standing for: ( Exit X ). The floats, X,Y,Z are for the entrance, which is where the pickups should be located.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)