SA-MP Forums Archive
GPS PROBLEM, HELP TO FIX PLEASE :( - 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: GPS PROBLEM, HELP TO FIX PLEASE :( (/showthread.php?tid=109918)



GPS PROBLEM, HELP TO FIX PLEASE :( - buonggiorno - 23.11.2009

Hi, i make gps, down is code

Код:
if (strcmp(cmdtext, "/gps pd", true)==0)
{
	SetPlayerCheckpoint(playerid,1544.856,-1675.155,13.220,5);
	SendClientMessage(playerid, COLOR_GREEN, "GPS OF", 5000, 1);
	SendClientMessage(playerid, COLOR_GREEN, "TO TURN IT OFF TYPE /GPSOFF", 5000, 1);
	return 1;
}

if (strcmp(cmdtext, "/gps bank", true)==0)
{
	SetPlayerCheckpoint(playerid,1460.397,-1023.262,23.493,5);
	SendClientMessage(playerid, COLOR_GREEN, "GPS ON", 5000, 1);
	SendClientMessage(playerid, COLOR_GREEN, "TO TURN IT OFF TYPE /GPSOFF", 5000, 1);
	return 1;
}
Problem become when i want to join server, i can login becouse on screen is message TO TURN IT OFF TYPE /GPSOFF, the message is on screen is show right after message YOU ARE REGISTER ACCOUNT, PLEASE LOGIN WITH /login password.

its imposibile to log in, how to fix this problem, i want to message TO TURN IT OFF TYPE /GPSOFF show to players when he tyrn on gps :S


Re: GPS PROBLEM, HELP TO FIX PLEASE :( - Niixie - 23.11.2009

Can you post the hole script + errors?


Re: GPS PROBLEM, HELP TO FIX PLEASE :( - buonggiorno - 23.11.2009

there is no errors, pawno compile it good without errors, but this message shown to me when i join server, i can login, message is on screen and he wont gone


Re: GPS PROBLEM, HELP TO FIX PLEASE :( - Abernethy - 23.11.2009

pawn Код:
SendClientMessage(playerid, COLOR_GREEN, "GPS ON", 5000, 1);
Correct format is
pawn Код:
SendClientMessage(playerid, color, const message[]);
or
pawn Код:
GameTextForPlayer(playerid, const string[], time, style);



Re: GPS PROBLEM, HELP TO FIX PLEASE :( - James_Bauer - 23.11.2009

Do you wone GPS system for looking to find the players or?


Re: GPS PROBLEM, HELP TO FIX PLEASE :( - buonggiorno - 23.11.2009

SO THE LINE NEED TO LOOK LINE THIS

Код:
SendClientMessage(playerid, color, "TO TURN IT OFF TYPE /GPSOFF []);
OR LIKE THIS

Код:
SendClientMessage(playerid, color, const message[TO TURN IT OFF TYPE /GPSOFF]);



Re: GPS PROBLEM, HELP TO FIX PLEASE :( - buonggiorno - 23.11.2009

MY GPS SYSTEM WILL FIND THE IMPORTANT LOCATIONS IN TOWN, LIKE PD, BANK, BURGERSHOT, FIND LOCATIONS OF JOBS, NOT LOOKING FOR PLAYER


Re: GPS PROBLEM, HELP TO FIX PLEASE :( - James_Bauer - 23.11.2009

There you go one GPS for locations like pd bank city hall....

Link: http://www.2shared.com/file/9373520/ac8cdbcd/BBBB.html

Credits to:Jofi


Re: GPS PROBLEM, HELP TO FIX PLEASE :( - CaHbKo - 23.11.2009

pawn Код:
SendClientMessage(playerid, COLOR_GREEN, "GPS OF", 5000, 1);
    SendClientMessage(playerid, COLOR_GREEN, "TO TURN IT OFF TYPE /GPSOFF", 5000, 1);
Change that to
pawn Код:
SendClientMessage(playerid, COLOR_GREEN, "GPS OF");
    SendClientMessage(playerid, COLOR_GREEN, "TO TURN IT OFF TYPE /GPSOFF");
I don't understand what you want to do with the ", 5000, 1"? If you are trying to put a message that appears on the screen, not in the chat, use:
GameTextForPlayer(playerid, const string[], time, style);
pawn Код:
GameTextForPlayer(playerid, "GPS OF",5000,1);
    GameTextForPlayer(playerid, "TO TURN IT OFF TYPE /GPSOFF",5000,1);



Re: GPS PROBLEM, HELP TO FIX PLEASE :( - buonggiorno - 23.11.2009

i fix gps problem thx to all now its working perfect )