SA-MP Forums Archive
Please 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)
+--- Thread: Please help! (/showthread.php?tid=625751)



Please help! - Learn - 05.01.2017

I did when someone want to buy ticket of lotto, he must be in the 24/7 market to buy the ticket, but when I try to buy it's still tell me "You're not at 24/7market"

the code:

CMD:buyticket(playerid,params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 3.0,-1674.8900,14.6211,175.705)
{
SendClientMessage(playerid, COLOR_GREY, "You're not at the 24/7 market!");
return 1;
}

I want to buy only from here: 3.0,-1674.8900,14.6211,175.7058


Re: Please help! - BiosMarcel - 05.01.2017

NVM i am stupid ...

Edit: Try increasing the range?


Re: Please help! - Learn - 05.01.2017

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
NVM i am stupid ...
If u can help dear person, write comment, If u dont have good thing to say sooo dont send comment!


Re: Please help! - Learn - 05.01.2017

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
NVM i am stupid ...

Edit: Try increasing the range?
I tried already... I was standing right on the spot and still can not buy.


Re: Please help! - BiosMarcel - 05.01.2017

Quote:
Originally Posted by Learn
Посмотреть сообщение
If u can help dear person, write comment, If u dont have good thing to say sooo dont send comment!
I did comment something, but i realized it was stupid, so i removed it


did u by any chance use the wrong cords?


Re: Please help! - Learn - 05.01.2017

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
I did comment something, but i realized it was stupid, so i removed it


did u by any chance use the wrong cords?
no man, I can't buy no matter where I am, If I am on the point I cant, I am out of the point I cant also! I dont know what to do... and I create this: CreateDynamic3DTextLabel("Type /signcheck to take your payday.", COLOR_YELLOW, 2377.1113,-39.3672,275.5786+0.5,4.0);

and when I enter the game I didnt see the label and I dont get any erros/worngs!


Re: Please help! - ISmokezU - 05.01.2017

Try increasing your range if it doesn't work your cords are definitely incorrect.

Код:
CMD:buyticket(playerid,params[]) {
if(!IsPlayerInRangeOfPoint(playerid, 30.0,-1674.8900,14.6211,175.705)) return SendClientMessage(playerid, -1, "You're not at the 24/7 market!");//If he's not in range tell him he's not at the market
else//if he is.
//Sell him the ticket.
return 1;
}



Re: Please help! - Learn - 05.01.2017

Quote:
Originally Posted by ISmokezU
Посмотреть сообщение
Try increasing your range if it doesn't work your cords are definitely incorrect.

Код:
CMD:buyticket(playerid,params[]) {
if(!IsPlayerInRangeOfPoint(playerid, 30.0,-1674.8900,14.6211,175.705)) return SendClientMessage(playerid, -1, "You're not at the 24/7 market!");//If he's not in range tell him he's not at the market
else//if he is.
//Sell him the ticket.
return 1;
}
you sure the range "30.0" fix the problem?

I try know and thank u about the answer!


Re: Please help! - BiosMarcel - 05.01.2017

Quote:
Originally Posted by Learn
Посмотреть сообщение
you sure the range "30.0" fix the problem?

I try know and thank u about the answer!
Like he said, there are not much options:

1. too small range
2. wrong command cords
3. you are standing at the wrong cords

It's one of those, that's pretty much undenieable


Re: Please help! - Learn - 05.01.2017

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
Like he said, there are not much options:

1. too small range
2. wrong command cords
3. you are standing at the wrong cords

It's one of those, that's pretty much undenieable
I need use /save to take the right position right? and after delete the numbers I dont need?

edit: if I have worng cords the pawn need to tell me it no?