help with carlocate
#1

how make /carlocate work?
i get some errors

Код:
	if(strcmp(cmd, "/carlocate", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pPcarkey] != 999)
			{
			  if(PlayerInfo[playerid][pPnumber] != 0)
			  {
			    if(gPlayerCheckPointStatus[playerid] != CHECKPOINT_CAR)
			    {
						SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
						format(string,sizeof(string),"** %s takes out a cellphone",sendername);
						ProxDetector(15.0,playerid,string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
						Wait(5000);
						SendClientMessage(playerid,COLOR_WHITE,"On-Star: This is On-Star how can I help you?");
						Wait(2000);
						format(string,sizeof(string),"%s says: [Cell] I'd like to locate a stolen vehicle",sendername");
	          ProxDetector(15.0,playerid,string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE);
	          Wait(2000);
						SendClientMessage(playerid,COLOR_WHIE,"On-Star: Okay sir, can I have your name and identification number please");
						Wait(2000);
						format(string,sizeof(string),"%s enters in the information into their cellphone",sendername);
						ProxDetector(15.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
						Wait(2000);
						SendClientMessage(playerid,COLOR_WHITE,"On-Star: Okay sir, your car location is being uploaded to your phone.");
						Wait(500);
						SendClientMessage(playerid,COLOR_WHITE,"On-Star: If you wish to cancel the trace of your car, call this number again");
						Wait(500);
						SetPlayerCheckpoint(playerid,CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationx], CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationy], CarInfo[PlayerInfo[playerid][pPcarkey]][cLocationz], 5.0);
						gPlayerCheckpointStatus[playerid] = CHECKPOINT_CAR;
						return 1;
					}
					else
					{
					  SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
						Wait(1000);
						SendClientMessage(playerid,COLOR_WHITE,"Your tracking of your vehicle has been automatically cancelled");
						return 1;
					}
				}
				else
				{
				  SendClientMessage(playerid,
				}
			}
			else
			{
				GameTextForPlayer(playerid, "~w~You do not have a car to locate", 5000, 1);
			}
		}
		return 1;
	}
Reply
#2

Quote:
Originally Posted by gupey1984
i get some errors
Could you tell us what those errors are?
Reply
#3

Код:
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(2380) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(2381) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(2408) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(2764) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(2775) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(2783) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(2806) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(2817) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(2825) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(2842) : error 004: function "IsPlayerInArea" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(2989) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(2994) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(2998) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(3010) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(3022) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(3026) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(3038) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(3042) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(3046) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(3050) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(3054) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(3058) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(3062) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(3066) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(3070) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Mitchell\Desktop\save\save games\SF LIFEPLAY\gamemodes\SFLIFEPLAY.pwn(3074) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
when i delete /carlocate its all good
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)