Why samp server crashes?`
#1

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

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

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.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)