help me =D - 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: help me =D (
/showthread.php?tid=200174)
help me =D -
MestreKiller - 17.12.2010
like when i create the first house of all id 0 it creates normally then when i pickup the money is 0 when i set it to more than 0Ђ why
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
new string[128];
for(new i = 0; i < MAX_HOUSES; i++)
{
if(pickupid == PickupID[i])
{
if(HInfo[i][owned] == 1)
{
format(string,sizeof(string),"This house is owned by %s",HInfo[i][ownername]);
SendClientMessage(playerid,0x05FA30FF,string);
}
else
{
format(string,sizeof(string),"This house if for sale, %d$",HInfo[i][price]);
SendClientMessage(playerid,0xF4EF0BFF,string);
break;
}
}
}
return 1;
}

has you can see the one that say
this house is for sale for 500$ is when i pickup the 2nd pickup
the one that says "this house is for sale for 0$" is the first house i created
Re: help me =D -
blackwave - 17.12.2010
You didn't define the amount the house will be sold for?
Re: help me =D -
MestreKiller - 17.12.2010
Quote:
Originally Posted by blackwave
You didn't define the amount the house will be sold for?
|
what do you mean?
Re: help me =D -
MestreKiller - 17.12.2010
Quote:
Originally Posted by blackwave
You didn't define the amount the house will be sold for?
|
oh i get it, i did define it -.-
This forum requires that you wait 60 seconds between posts. Please try again in 6 seconds.
-.-