SA-MP Forums Archive
Adding Pickups help. - 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: Adding Pickups help. (/showthread.php?tid=121280)



Adding Pickups help. - mannen55 - 16.01.2010

I receive these errors:
Код:
C:\Users\***\Desktop\samp03asvr_R3_win32\gamemodes\***.pwn(11953) : error 033: array must be indexed (variable "PlayerInfo")
C:\Users\***\Desktop\samp03asvr_R3_win32\gamemodes\***.pwn(11955) : error 035: argument type mismatch (argument 3)
When i add this, just under
Код:
LinkInteriorToVehicle(bla bla bla).
code:
Код:
	if(PlayerInfo[pOwnsHouse] == 1)
	{
	  AddStaticPickup(1273, 2, PlayerInfo[pHouseX], PlayerInfo[pHouseY], PlayerInfo[pHouseZ]);
	  pickups++;
	}
I want it so it adds a pickup to anywhere where a house is owned. (It's dynamic, but im not sure how to make a Pickup STAY there,

is it possible i could add a pickup when i buy the house, and it stays until i sell it??

Thanks!


Re: Adding Pickups help. - [HiC]TheKiller - 16.01.2010

pawn Код:
if(PlayerInfo[playerid][pOwnsHouse] == 1)
{
  AddStaticPickup(1273, 2, PlayerInfo[playerid][pHouseX], PlayerInfo[playerid][pHouseY], PlayerInfo[playerid][pHouseZ]);
  pickups++;
}
Try that?


Re: Adding Pickups help. - mannen55 - 16.01.2010

Nope, now i get this.

Код:
C:\Users\Zak\Desktop\samp03asvr_R3_win32\gamemodes\nyrp.pwn(11953) : error 017: undefined symbol "playerid"
C:\Users\Zak\Desktop\samp03asvr_R3_win32\gamemodes\nyrp.pwn(11955) : error 017: undefined symbol "playerid"
It's dynamic housing, but it goes when you log out, and when you log in it comes back, it isnt saved to any file but the user file [pOwnsHouse] House locations, XYZ Etc.