SA-MP Forums Archive
Pickups aren't showing. - 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: Pickups aren't showing. (/showthread.php?tid=126294)



Pickups aren't showing. - Eazy_Efolife - 07.02.2010

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;
}



Re: Pickups aren't showing. - Calgon - 07.02.2010

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.


Re: Pickups aren't showing. - Eazy_Efolife - 07.02.2010

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);



Re: Pickups aren't showing. - Calgon - 07.02.2010

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


Re: Pickups aren't showing. - Eazy_Efolife - 07.02.2010

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.