When im waitting 30secdons FOR
#1

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
Reply
#2

No Reply 1 DAY?
Reply
#3

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(playeridparams[]) //Command robbank
{
    if (
robdrag[playerid] == //Getting If Your not recently robbed the bank
     
if(IsPlayerInRangeOfPoint(playerid,2.0,1955.3673,1018.1609,992.4688)) //Gets your Pos.
    
{
    
SendClientMessage(playeridCOLOR_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"100004);
    
robdrag[playerid] = 1// Give's your Recently Robbed
    
SetPlayerWantedLevel(playeridGetPlayerWantedLevel(playerid)+4); //Sets your wanted level to 3
    
SetTimerEx("Robdrag"30000false"i"playerid); //Timer 1 Ticks when your robbing 30 seconds
    

    else
    {
    return 
SendClientMessage(playeridCOLOR_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(playeridCOLOR_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;

Reply
#4

2Errors

Код:
error 010: invalid function or declaration
error 001: expected token: ";", but found "-identifier-"
Line 877
PHP код:
CMD:robdrag(playerid,*params[])*//Command*robbank 
Reply
#5

Error is on line above you provided
Reply
#6

Fixed Thanks Everyone help me.
Reply
#7

Fixed it's good. Was just posting while you already posted. lol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)