How to make when a player is at my cordinates, to show him a messege at center of the screen? -
bustern - 19.08.2013
So when a player is at cordinates like 2505.5984,-1694.5410,13.5581,180.3185, i want to player to get a messege at the center of screen like "You can repair your car here"
Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? -
jordy.kiesebrink - 19.08.2013
pawn Code:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2505.5984, -1694.5410, 13.5581)) {
GameTextForPlayer(playerid, 0xFFFFFFFF, "You can repair your car here");
}
Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? -
bustern - 19.08.2013
When i compile this, i got eror
Re : How to make when a player is at my cordinates, to show him a messege at center of the screen? -
Garwan50 - 19.08.2013
tell us what are those errors...
Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? -
bustern - 19.08.2013
C:\Users\Niki AdminA\Desktop\Тестване на PAWNO\filterscripts\myfirstcmd.pwn(303) : error 035: argument type mismatch (argument 2)
Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? -
LocMax - 19.08.2013
https://sampwiki.blast.hk/wiki/GameTextForPlayer
So, change Jordy's code to:
pawn Code:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2505.5984, -1694.5410, 13.5581)) {
GameTextForPlayer(playerid,"You can repair your car here", 5000, 3);
}
Styles:
https://sampwiki.blast.hk/wiki/GameTextStyle#Text_Styles
Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? -
jordy.kiesebrink - 19.08.2013
pawn Code:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2505.5984, -1694.5410, 13.5581)) {
GameTextForPlayer(playerid, 0xFFFFFFFF, "You can repair your car here",5000,3);
}//format the time and style sorry my mistake made it out of my mind :D
EDIT: Thanks LocMax was replying in front of me haha
Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? -
bustern - 19.08.2013
Doesnt work
![Sad](images/smilies/sad.gif)
i compiled it, but when i come to the place then the text didnt show
Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? -
Micius - 19.08.2013
Put that on Timer, or OnPlayerUpdate
Re: How to make when a player is at my cordinates, to show him a messege at center of the screen? -
PrinceKumar - 19.08.2013
Where you are putting these lines...?