Very strange error
#1

Код:
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(2407) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(3439) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4255) : error 017: undefined symbol "LoadPlayerVehicles"
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4266) : error 004: function "IsKeyJustDown" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4456) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4551) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4555) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4559) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4571) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4575) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4579) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4583) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4587) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4591) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4595) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4599) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4603) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4614) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4618) : error 004: function "PlayerToPoint" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4759) : error 004: function "ProxDetector" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(4767) : error 004: function "ProxDetector" is not implemented
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(7423) : error 017: undefined symbol "GetVehicleName"
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(7661) : error 017: undefined symbol "GetVehicleName"
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(7688) : error 017: undefined symbol "GetVehicleName"
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(7714) : error 017: undefined symbol "GetVehicleName"
E:\GTA.San.Andreas\SAMP\gamemodes\lslrp.pwn(7731) : error 017: undefined symbol "DestroyCarDealershipVehicle"

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


26 Errors.
That appeared suddenly after I added this

Код:
	if(strcmp(cmd, "/gotoplayer", true, 5) == 0)
	{
	    if(PlayerInfo[playerid][pAdmin] > 0)
	    {
    		tmp = strtok(cmdtext, idx);
    		giveplayerid = strval(tmp);
    		if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USAGE: /goto [id]");
    		if(!IsNumeric(tmp)) return SendClientMessage(playerid, -1, "USAGE: /goto [id] - ID Must Be A Number.");

    		if(IsPlayerConnected(giveplayerid))
   			{
   				SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));

				new Float:x, Float:y, Float:z;
        		GetPlayerPos(giveplayerid, x,y,z);
        		SetPlayerPos(playerid, x+1,y,z);
    		}
    		else
    		{
        		format(string, sizeof(string), "%d Is Not An Active Player.", giveplayerid);
        		SendClientMessage(playerid, -1, string);
    		}
		else
		{
	    	SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command!");
		}
    	return 1;
	}
It works perfectly without any warnings or errors if I deleted it :/

Can anyone help me please?
Reply
#2

you forgot one { or } i the code
pawn Код:
if(strcmp(cmd, "/gotoplayer", true, 5) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] > 0)
        {
            tmp = strtok(cmdtext, idx);
            giveplayerid = strval(tmp);
            if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USAGE: /goto [id]");
            if(!IsNumeric(tmp)) return SendClientMessage(playerid, -1, "USAGE: /goto [id] - ID Must Be A Number.");
            if(IsPlayerConnected(giveplayerid))
            {
                SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));

                new Float:x, Float:y, Float:z;
                GetPlayerPos(giveplayerid, x,y,z);
                SetPlayerPos(playerid, x+1,y,z);
            }
            else
            {
                format(string, sizeof(string), "%d Is Not An Active Player.", giveplayerid);
                SendClientMessage(playerid, -1, string);
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command!");
        }
        return 1;
    }
Reply
#3

I don't think so

Check it again
Reply
#4

just put my edit of your code and should solve the problem

I see only one problem in code on first post, just not one }
Reply
#5

o.o

It worked o.o

What did you change?
Reply
#6

I just add one }
Reply
#7

Yea, where?
Reply
#8

pawn Код:
if(strcmp(cmd, "/gotoplayer", true, 5) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] > 0)
        {
            tmp = strtok(cmdtext, idx);
            giveplayerid = strval(tmp);
            if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USAGE: /goto [id]");
            if(!IsNumeric(tmp)) return SendClientMessage(playerid, -1, "USAGE: /goto [id] - ID Must Be A Number.");
            if(IsPlayerConnected(giveplayerid))
            {
                SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));

                new Float:x, Float:y, Float:z;
                GetPlayerPos(giveplayerid, x,y,z);
                SetPlayerPos(playerid, x+1,y,z);
            }
            else
            {
                format(string, sizeof(string), "%d Is Not An Active Player.", giveplayerid);
                SendClientMessage(playerid, -1, string);
            }
        } //////////////// Here they are =]
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command!");
        }
        return 1;
    }
Reply
#9

Oh. Ok thanks a lot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)