When im waitting 30secdons FOR -
RedRex - 19.12.2016
Hi everyone, when I'm waiting 30 secdons for robbing the Casino There are nothing happened... I don't know Why canyou help me? To Fix it? Please ...
CODES
Код:
CMD:robdrag(playerid, params[]) //Command robbank
{
if (robdrag[playerid] == 0 ) //Getting If Your not recently robbed the bank
if(IsPlayerInRangeOfPoint(playerid,2.0,1955.3673,1018.1609,992.4688)) //Gets your Pos.
{
SendClientMessage(playerid, COLOR_GREEN, "You robbing the Casino 30 seconds left!"); //Sending a ClientMessage 30 sec left
GameTextForPlayer(playerid, "Do not Left Checkpoint\nWait The Timer To Completed\n30Secodns", 10000, 4);
robdrag[playerid] = 1; // Give's your Recently Robbed
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); //Sets your wanted level to 3
SetTimerEx("Robdrag", 30000, false, "i", playerid); //Timer 1 Ticks when your robbing 30 seconds
SetTimerEx("after1", 50000, false, "i", playerid);
} else {
SendClientMessage(playerid, COLOR_RED, "[ERROR:]You are no in rob checkpoint!"); // Sends a SCM Your not on a Checkpoint.
}
return 1;
}
forward Robdrag(playerid); //Forwards your public
public Robdrag(playerid)
{
new rand = random(150000)+0; //When your robbing you get 0-130000 cash random
GivePlayerMoney(playerid,rand); //it Gives your the random cash
SendClientMessage(playerid, COLOR_GREEN, "You Rob the bank and now have 4 wanted level!"); //Gives you 3 wanted stars
TogglePlayerControllable(playerid,1); //You can walk again
return 1;
}
This my codes
Re: When im waitting 30secdons FOR -
RedRex - 20.12.2016
No Reply 1 DAY?
Re: When im waitting 30secdons FOR -
StrikerZ - 20.12.2016
EDIT: It worked for me. I used the same code provided by you. And ye i removed the after1 timer when i tested the cmd. So i bet the problem is in your after1 timer. I used this code below. [i.e. without after1 timer]. Debug your code
PHP код:
CMD:robdrag(playerid, params[]) //Command robbank
{
if (robdrag[playerid] == 0 ) //Getting If Your not recently robbed the bank
if(IsPlayerInRangeOfPoint(playerid,2.0,1955.3673,1018.1609,992.4688)) //Gets your Pos.
{
SendClientMessage(playerid, COLOR_RED, "You robbing the Casino 30 seconds left!"); //Sending a ClientMessage 30 sec left
GameTextForPlayer(playerid, "Do not Left Checkpoint\nWait The Timer To Completed\n30Secodns", 10000, 4);
robdrag[playerid] = 1; // Give's your Recently Robbed
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+4); //Sets your wanted level to 3
SetTimerEx("Robdrag", 30000, false, "i", playerid); //Timer 1 Ticks when your robbing 30 seconds
}
else
{
return SendClientMessage(playerid, COLOR_RED, "[ERROR:]You are no in rob checkpoint!"); // Sends a SCM Your not on a Checkpoint.
}
return 1;
}
forward Robdrag(playerid); //Forwards your public
public Robdrag(playerid)
{
new rand = random(150000)+0; //When your robbing you get 0-130000 cash random
GivePlayerMoney(playerid,rand); //it Gives your the random cash
SendClientMessage(playerid, COLOR_RED, "You Rob the bank and now have 4 wanted level!"); //Gives you 3 wanted stars
TogglePlayerControllable(playerid,1); //You can walk again
return 1;
}
Re: When im waitting 30secdons FOR -
RedRex - 20.12.2016
2Errors
Код:
error 010: invalid function or declaration
error 001: expected token: ";", but found "-identifier-"
Line 877
PHP код:
CMD:robdrag(playerid,*params[])*//Command*robbank
Re: When im waitting 30secdons FOR - iLearner - 20.12.2016
Error is on line above you provided
Re: When im waitting 30secdons FOR -
RedRex - 20.12.2016
Fixed Thanks Everyone help me.
Re: When im waitting 30secdons FOR -
coool - 20.12.2016
Fixed it's good. Was just posting while you already posted. lol