How to make when a player is at my cordinates, to show him a messege at center of the screen?
#1

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

pawn Code:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2505.5984, -1694.5410, 13.5581)) {
    GameTextForPlayer(playerid, 0xFFFFFFFF, "You can repair your car here");
}
Reply
#3

When i compile this, i got eror
Reply
#4

tell us what are those errors...
Reply
#5

C:\Users\Niki AdminA\Desktop\Тестване на PAWNO\filterscripts\myfirstcmd.pwn(303) : error 035: argument type mismatch (argument 2)
Reply
#6

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

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
Reply
#8

Doesnt work i compiled it, but when i come to the place then the text didnt show
Reply
#9

Put that on Timer, or OnPlayerUpdate
Reply
#10

Where you are putting these lines...?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)