Adding Pickups help.
#1

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!
Reply
#2

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)