Need help - 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: Need help (
/showthread.php?tid=506184)
Need help -
ChromeMenu - 12.04.2014
Код:
error 025: function heading differs from prototype
warning 213: tag mismatch
error 024: "break" or "continue" is out of context
Код:
public OnPlayerClickMap(playerid, FLoat:fX, Float:fY, Float:fZ)
{
if(tele_Enabled[playerid] == 1 && PlayerInfo[playerid][pAdmin] >= 2)
{
SetPlayerPosFindZ(playerid, fX, fY, fZ);
}
else break;
return 1;
}
CMD:maptp(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, WHITE, "You cannot use this command!");
if(tele_Enabled[playerid] == 0)
{
tele_Enabled[playerid] = 1;
SendClientMessage(playerid, WHITE, "You have enabled map teleporting.");
}
else
{
tele_Enabled[playerid] = 0;
SendClientMessage(playerid, WHITE, "You have disabled map teleporting.");
}
return 1;
}
Errors:
Код:
public OnPlayerClickMap(playerid, FLoat:fX, Float:fY, Float:fZ)
SetPlayerPosFindZ(playerid, fX, fY, fZ);
else break;
Re: Need help -
PrivatioBoni - 12.04.2014
Remove the
It should compile without it.
Also, you have "FLoat" when it should be "Float". Fixing that little mistake should also eradicate the tag mismatch error.
Re: Need help -
Equuuuin0X - 12.04.2014
first warning,
you put ''FLoat'' in ''FLoat:fX'', it should be ''Float'' capitalism could causes errors.
2nd error is depending on first error, so 1st error fixed, this one should be fixed aswell.
not sure about 3rd though
try to remove it as it is not effecting anything.