SA-MP Forums Archive
Why samp server crashes?` - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Why samp server crashes?` (/showthread.php?tid=575128)



Why samp server crashes?` - GTLS - 24.05.2015

i created these commands:
Код:
if(strcmp(cmd, "/flares", true) == 0)
	{
	 if(PlayerInfo[playerid][pMember] != 1 || PlayerInfo[playerid][pAdmin] <= 0) return SendClientMessage(playerid, COLOR_GREY, "*You are not authorized to use that command!");
	 else {
            new Float:angle, Float:x, Float:y, Float:z;
            GetPlayerPos(x, y, z);
            GetPlayerFacingAngle(playerid, angle);
            CreateFlare(x, y, z-2.2, angle);
          }
          return 1;
    }
    
    if(strcmp(cmd, "/dflaresall", true) == 0)
    {
      if(PlayerInfo[playerid][pMember] != 1 || PlayerInfo[playerid][pMember] != 2 || PlayerInfo[playerid][pMember]!=3 || PlayerInfo[playerid][pAdmin] <=0) return SendClientMessage(playerid, COLOR_GREY, "*You are not authorized to use that command!");
       DeleteAllFlare();
       return 1;
    }

	if(strcmp(cmd, "/dflares", true) == 0)
	{
      if(PlayerInfo[playerid][pMember] != 1 || PlayerInfo[playerid][pMember] != 2 || PlayerInfo[playerid][pMember]!=3 || PlayerInfo[playerid][pAdmin] <=0) return SendClientMessage(playerid, COLOR_GREY, "*You are not authorized to use that command!");
      DeleteClosestFlare(playerid);
      return 1;
	}
So when IG i do /flares it crashes samp-server.exe


Re: Why samp server crashes?` - SoFahim - 24.05.2015

There should be a Crash log. TRy to post that. Is there any eroor or warning when you compile the Gamemode?


Re: Why samp server crashes?` - Konstantinos - 24.05.2015

Load crashdetect plugin: https://github.com/Zeex/samp-plugin-...etect/releases
Compile with -d3 flag: https://github.com/Zeex/samp-plugin-...ith-debug-info

Run the server and after a server crash, post the server log.


Re: Why samp server crashes?` - Yashas - 24.05.2015

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Load crashdetect plugin: https://github.com/Zeex/samp-plugin-...etect/releases
Compile with -d3 flag: https://github.com/Zeex/samp-plugin-...ith-debug-info

Run the server and after a server crash, post the server log.
Along with that post the code for CreateFlare