Posts: 190
Threads: 15
Joined: Jan 2010
Reputation:
0
i have one question
i have created a green house pickup in my server
but i dont know how to create that when i stand in pickup
it says "house name" any message only that appears when i stand in pickup
and one more
when i create money pickup how to create to give player money
when player picks up PICKUP
thanks for help
~Matej
Posts: 273
Threads: 4
Joined: Nov 2007
Reputation:
0
public OnPlayerPickUpPickup(playerid,pickupid)
That is the callback you're looking for...
Posts: 607
Threads: 41
Joined: Apr 2009
Quote:
Originally Posted by Matej_SLO™
Quote:
Originally Posted by XGh0stz
public OnPlayerPickUpPickup(playerid,pickupid)
That is the callback you're looking for...
|
yeah that is the callback but
i need to put something there that it will say
or give player money when he stands in pickup
|
Why don't you create it more simple
example :
lol = Addstat..
than You simply use "lol" where ever you want
So
Quote:
public OnPlayerPickUpPickup(playerid,pickupid)
{
//here you add that stuff and your simpply done..
|
Posts: 190
Threads: 15
Joined: Jan 2010
Reputation:
0
i tryed this but it doesnt work:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash) GivePlayerMoney(playerid,10000);
}
Posts: 607
Threads: 41
Joined: Apr 2009
Quote:
Originally Posted by Matej_SLO™
|
You sure you created everything right ?
Posts: 607
Threads: 41
Joined: Apr 2009
Quote:
Originally Posted by Matej_SLO™
yeah i did
but i think i did some things wrong
i dont know
i did all the same but then are 1-2 errors
|
Post errors here so we can help you.. Or just come on msn/xfire and i'll help you there :P