GPS PROBLEM, HELP TO FIX PLEASE :(
#1

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

Can you post the hole script + errors?
Reply
#3

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

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);
Reply
#5

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

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]);
Reply
#7

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

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

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);
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)