Server crashing rep+ fast
#1

when player use pickup server got crashed help fast rep+

Код:
forward StealAgain();
public StealAgain()
{
Jetpack = CreatePickup(370,1,268.7132,1883.5077,-30.0938,-1);
return 1;
}
Код:
Jetpack = CreatePickup(370,1,268.7132,1883.5077,-30.0938,-1);
Код:
 if(pickupid == Jetpack)
        {
            if(gTeam[playerid] == C1) return 0;
            else
            {
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
                SendClientMessage(playerid,-1,"{FF0000}[JETPACK]{ffffff}You stole the jetpack, quickly take it to the place on the map.");
                DestroyPickup(Jetpack);
                SetTimer("StealAgain",1200000,false);
                SetPlayerMapIcon(playerid,Ammu,-396.3205,2236.0513,42.4297,20,0,MAPICON_GLOBAL);
                GameTextForAll("~b~Cops ~N~~W~intruder stole the ~N~~R~jetpack~W~ ~N~stop him immediately!");
                for(new i=0; i <MAX_PLAYERS; i++)
                {
                {

                                }
                        }
            }
		}

  return 1;
}
Reply
#2

PHP код:
                for(new i=0<MAX_PLAYERSi++)
                {
                {

                                }
                        }
            }
        } 
What is that?
Reply
#3

need to remove ??

Код:
for(new i=0; i <MAX_PLAYERS; i++)
Reply
#4

bump
Reply
#5

Your looping nothing. That's probably why its crashing.
Reply
#6

can't understand
Reply
#7

Delete that:

Код:
                for(new i=0; i <MAX_PLAYERS; i++)
                {
                {

                                }
                        }
And why was it even in there in the first place? That's what's confusing people.
Reply
#8

Use this:

Код:
        if(pickupid == Jetpack)
        {
            if(gTeam[playerid] == C1) return 0;
            else
            {
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
                SendClientMessage(playerid,-1,"{FF0000}[JETPACK]{ffffff}You stole the jetpack, quickly take it to the place on the map.");
                DestroyPickup(Jetpack);
                SetTimer("StealAgain",1200000,false);
                SetPlayerMapIcon(playerid,Ammu,-396.3205,2236.0513,42.4297,20,0,MAPICON_GLOBAL);
                GameTextForAll("~b~Cops ~N~~W~intruder stole the ~N~~R~jetpack~W~ ~N~stop him immediately!");                
                return 1;
        }
Reply
#9

It might be helpful for you.
PHP код:
 if(pickupid == Jetpack)
        {
            if(
gTeam[playerid] == C1) return 0;
            else
            {
                
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
                
SendClientMessage(playerid,-1,"{FF0000}[JETPACK]{ffffff}You stole the jetpack, quickly take it to the place on the map.");
                
DestroyPickup(Jetpack);
                
SetTimer("StealAgain",1200000,false);
                
SetPlayerMapIcon(playerid,Ammu,-396.3205,2236.0513,42.4297,20,0,MAPICON_GLOBAL);
                
GameTextForAll("~b~Cops ~N~~W~intruder stole the ~N~~R~jetpack~W~ ~N~stop him immediately!");
                for(new 
i=0<MAX_PLAYERSi++)
               
        }

  return 
1;

Reply
#10

Quote:
Originally Posted by SoFahim
Посмотреть сообщение
It might be helpful for you.
PHP код:
 if(pickupid == Jetpack)
        {
            if(
gTeam[playerid] == C1) return 0;
            else
            {
                
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
                
SendClientMessage(playerid,-1,"{FF0000}[JETPACK]{ffffff}You stole the jetpack, quickly take it to the place on the map.");
                
DestroyPickup(Jetpack);
                
SetTimer("StealAgain",1200000,false);
                
SetPlayerMapIcon(playerid,Ammu,-396.3205,2236.0513,42.4297,20,0,MAPICON_GLOBAL);
                
GameTextForAll("~b~Cops ~N~~W~intruder stole the ~N~~R~jetpack~W~ ~N~stop him immediately!");
                for(new 
i=0<MAX_PLAYERSi++)
               
        }
  return 
1;

Quote:
Originally Posted by hamzajaved780
Посмотреть сообщение
Use this:

Код:
        if(pickupid == Jetpack)
        {
            if(gTeam[playerid] == C1) return 0;
            else
            {
                SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
                SendClientMessage(playerid,-1,"{FF0000}[JETPACK]{ffffff}You stole the jetpack, quickly take it to the place on the map.");
                DestroyPickup(Jetpack);
                SetTimer("StealAgain",1200000,false);
                SetPlayerMapIcon(playerid,Ammu,-396.3205,2236.0513,42.4297,20,0,MAPICON_GLOBAL);
                GameTextForAll("~b~Cops ~N~~W~intruder stole the ~N~~R~jetpack~W~ ~N~stop him immediately!");                
                return 1;
        }
can't complite 26 errors
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)