error 010: invalid function or declaration - 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: error 010: invalid function or declaration (
/showthread.php?tid=605390)
error 010: invalid function or declaration -
ItsJosh - 18.04.2016
I keep getting this 'error 010: invalid function or declaration'
SA-MP Server\gamemodes\jdm.pwn(204) : error 010: invalid function or declaration
SA-MP Server\gamemodes\jdm.pwn(207) : error 010: invalid function or declaration
SA-MP Server\gamemodes\jdm.pwn(210) : error 010: invalid function or declaration
SA-MP Server\gamemodes\jdm.pwn(213) : error 010: invalid function or declaration
This is the code at the lines:
Код:
if (strcmp("/dm", cmdtext, true, 10) == 0)
SetPlayerPos(playerid, -1953.2880,267.4391,41.0471);
SendClientMessage(playerid,WHITE_COLOR, "You have teleported to Deathmatch.");
return 1;
}
if (strcmp("/suicide", cmdtext, true, 10) == 0)
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid,WHITE_RED, "REST IN PEACE.");
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
I included thoses OnPlayer just in case if it matters, I really need some help with this.
I'm going to
+rep if you help me.
Re: error 010: invalid function or declaration -
zPain - 18.04.2016
The commands must be inside
OnPlayerCommandText. Plus, you forgot the opening braces.
Re: error 010: invalid function or declaration -
ItsJosh - 18.04.2016
Fixed, thanks.
Re: error 010: invalid function or declaration -
DJefferson - 12.01.2018
i got the same problem but cant fix it :/