GM runs in a loop
#1

Hello. theres this iretating problem on the server, the gm runs in a loop restarting over and over. any ideas?
Ending code looks like:
pawn Код:
public OnPlayerHaveExtraCash(playerid,extraamount)
{
    return 1;
}
{
public GMExit
Reply
#2

Quote:
Originally Posted by Seif_
Remove the last 2 lines firstly.
pawn Код:
public OnPlayerHaveExtraCash(playerid,extraamount)
{
    return 1;
}
and i will have following error: C:\Users\Svensson\Desktop\GTARP\pawno\include\serv ermoneyGM.inc(34) : error 004: function "GMExit" is not implemented
Reply
#3

Quote:
Originally Posted by guaid
Quote:
Originally Posted by Seif_
Remove the last 2 lines firstly.
pawn Код:
public OnPlayerHaveExtraCash(playerid,extraamount)
{
    return 1;
}
and i will have following error: C:\Users\Svensson\Desktop\GTARP\pawno\include\serv ermoneyGM.inc(34) : error 004: function "GMExit" is not implemented
Add gm edit to your GM but not in another function or it will be fuked up
Reply
#4

There could be numerous causes for this. Perhaps you're sending rcon commands or inproperly calling OnGameModeExit. We need to see the code before we can even start to specify a problem.
Reply
#5

ive made some adjustments and made pawn understand it and send me the error.
pawn Код:
{
//this is line 44781
    new string[255];
  new ftext[255];
  if(ad == 1) { ftext = "~ Visit on our website ( http://www.reallife-roleplay.com ) ~"; }
  else if(ad == 2) { ftext = "~ Spot a hacker or cheater? Use /report instead of main chat ~"; }
  else if(ad == 3) { ftext = "~ Have any questions ? Use /askq to ask admins. ~"; }
  else if(ad == 4) { ftext = "~ Police is not your enemy. If you are in danger /call 911 ~"; }
  else if(ad == 5) { ftext = "~ You are playing at Real Life Role Play, our website is
http://www.reallife-roleplay.com[url=http://] ~"; }
  else if(ad == 6) { ftext = "~ Stuck with no cars around? call a taxi with /call 444 ~"; }
  else if(ad == 7) { ftext = "~ Stuck or maybe bugged? Try out /stuck and /refresh then contact admin ~"; }
    format(string, sizeof(string), "%s", ftext);
    SendClientMessageToAll(0xFF800096, string);
{
    return 1;
}
the error:
Код:
.pwn(44796) : error 030: compound statement not closed at the end of file (started at line 44782)
Reply
#6

Your closing braces are incorrect, not to mention indention. Additionally, the code you posted shouldn't effect the gamemodes running status.

Код:
Function(parameters)
{
  AnotherFunctionCall();
 
  switch(Value)
  {
    case 0:
    {

    }

    default:
    {

    }
  }
}
Reply
#7

Hmm. what kind of command types could make it go in a loop?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)