Errors
#1

Hello. My English is bad, sorry for that.
This is my problem:

https://i.imgur.com/gnSokpj.png

Code:

Код:
//PREVLACENJE DROGE
public OnPlayerEnterDynamicRaceCP(playerid, checkpointid);
{
	if(checkpointid == Start)
	{
		TogglePlayerDynamicRaceCP(playerid, Start, 0);
		TogglePlayerDynamicRaceCP(playerid, Prva_Destinacija, 1);
		TogglePlayerControllable(playerid, 0);
		SetTimerEx("UnfreezePlayer", 3000, false, "d", playerid):
		GameTextForPlayer(playerid,"~b~UTOVAR DROGE, PRICEKAJTE..",1500,6):
	}
	//
    if(checkpointid == Prva_Destinacija)
	{
		TogglePlayerDynamicRaceCP(playerid, Prva_Destinacija, 0);
		TogglePlayerDynamicRaceCP(playerid, Druga_Destinacija, 1);
		TogglePlayerControllable(playerid, 0);
		SetTimerEx("UnfreezePlayer", 3000, false, "d", playerid):
		GameTextForPlayer(playerid,"~b~ISTOVAR DROGE, PRICEKAJTE",1500,6):
	}
	//
 	if(checkpointid == Druga_Destinacija)
	{
		TogglePlayerDynamicRaceCP(playerid, Druga_Destinacija, 0);
		TogglePlayerDynamicRaceCP(playerid, Kraj, 1);
		TogglePlayerControllable(playerid, 0);
		SetTimerEx("UnfreezePlayer", 3000, false, "d", playerid):
		GameTextForPlayer(playerid,"~b~ISTOVAR DROGE, PRICEKAJTE",1500,6):
	}
	if(checkpointid == Kraj)
	{
	    TogglePlayerAllDynamicRaceCPs(playerid, 0);
	    Zaposlen[playerid] = 0;
	    SendClientMessage(playerid,0xFC7860FF, "INFO: Zavrisili ste misiju");
		GivePlayerMoney(playerid, 500);
		TogglePlayerControllable(playerid, 0);
		SetTimerEx("UnfreezePlayer", 3000, false, "d", playerid):
		GameTextForPlayer(playerid,"~b~ZAVRSAVANJE POSLA, PRICEKAJTE",1500,6):
	}
	//
	return 1;
}
Reply
#2

Why is there a semicolon after public OnPlayerEnterDynamicRaceCP(playerid, checkpointid)? Remove that and you'll experience wonders.
Reply
#3

Thank you man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)