Very strange error - 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)
+--- Thread: Very strange error (
/showthread.php?tid=289937)
Very strange error -
TheNavigator - 13.10.2011
Код:
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?
Re: Very strange error -
volune - 13.10.2011
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;
}
Re: Very strange error -
TheNavigator - 13.10.2011
I don't think so
Check it again
Re: Very strange error -
volune - 13.10.2011
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 }
Re: Very strange error -
TheNavigator - 13.10.2011
o.o
It worked o.o
What did you change?
Re: Very strange error -
volune - 13.10.2011
I just add one }
Re: Very strange error -
TheNavigator - 13.10.2011
Yea, where?
Re: Very strange error -
volune - 13.10.2011
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;
}
Re: Very strange error -
TheNavigator - 13.10.2011
Oh. Ok thanks a lot