error 010: invalid function or declaration
#1

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.
Reply


Messages In This Thread
error 010: invalid function or declaration - by ItsJosh - 18.04.2016, 16:37
Re: error 010: invalid function or declaration - by zPain - 18.04.2016, 17:02
Re: error 010: invalid function or declaration - by ItsJosh - 18.04.2016, 18:02
Re: error 010: invalid function or declaration - by DJefferson - 12.01.2018, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)