SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 02/11/2010, 03:11 PM   #1
NotoriousMOB
Gangsta
 
NotoriousMOB's Avatar
 
Join Date: Sep 2010
Location: Denmark
Posts: 507
Reputation: 3
Default [HELP]Car locate

Im trying to get this code working
but i keep getting errors anyone who might have a solution or have a easyer code for this tried searching alot myself without luck.

Code:
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;
	}

Errors i get:

Code:
(1974) : error 004: function "SafeGivePlayerMoney" is not implemented
(2003) : error 004: function "SafeGivePlayerMoney" is not implemented
(2039) : error 004: function "SafeResetPlayerWeapons" is not implemented
(2040) : error 004: function "SafeGivePlayerWeapon" is not implemented
(2067) : error 004: function "SafeResetPlayerWeapons" is not implemented
(2537) : error 004: function "PlayerToPoint" is not implemented
(2548) : error 004: function "PlayerToPoint" is not implemented
__________________
Check out Mafia 2 Multiplayer

NotoriousMOB is offline  
Old 02/11/2010, 03:15 PM   #2
Typhome
High-roller
 
Typhome's Avatar
 
Join Date: Mar 2009
Location: Estonia
Posts: 1,029
Reputation: 10
Default Re: [HELP]Car locate

You've forgotted a closing bracket. (I think, why? Because its usually that errors.)
Typhome is offline  
Old 02/11/2010, 03:30 PM   #3
NotoriousMOB
Gangsta
 
NotoriousMOB's Avatar
 
Join Date: Sep 2010
Location: Denmark
Posts: 507
Reputation: 3
Default Re: [HELP]Car locate

doesen't look like i forgot a closing bracket, you have any other idea what can make it show those erros.
__________________
Check out Mafia 2 Multiplayer

NotoriousMOB is offline  
Old 02/11/2010, 04:41 PM   #4
Miguel
High-roller
 
Miguel's Avatar
 
Join Date: Dec 2009
Posts: 1,581
Reputation: 23
Default Re: [HELP]Car locate

Maybe you aren't using those functions?

Comment them...
Miguel is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[REQ] Locate phone Rasmus19 Help Archive 5 22/04/2010 09:16 PM
Cant locate my gta_sa.exe? Tinkotin Client Support 2 06/04/2010 03:29 PM
/locate TheGtaLover Help Archive 2 06/01/2010 05:33 PM
/locate ID Striker_Moe Help Archive 2 07/11/2009 09:02 PM
SA-MP Unable To Locate..... ExistingRolePlay Client Support 8 27/10/2009 11:46 PM


All times are GMT. The time now is 05:55 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.