Jump to content
  • 0

Crash la compilare


rfxreflex

Question

Problema intalnita (descriere): Salut. Am creat o comanda in pawno iar cand dau sa o compileze imi da crash la pawno. Daca scot scriptfile la comanda, merge sa compilez fara probleme. Comanda e urmatoarea.
Ero(area / rile) / warning-(ul / urile): N/A.
Liniile de cod / sursa / script-ul:

//--------------- FACTION Help-------------------------------
if(strcmp(cmd, "/fhelp", true) == 0)
{
	if(IsPlayerConnected(playerid))
	{
	    if(P_DATA[playerid][pMember] == 0 || P_DATA[playerid][pLeader] == 0)
	    {
	        SendClientMessage(playerid, COLOR_WHITE, "Nu faci parte dintr-o factiune!");
	        return 1;
		}
		else if(P_DATA[playerid][pMember] == 1 || P_DATA[playerid][pLeader] == 1)
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "====== Comenzile Factiunii LSPD =======");
		    SendClientMessage(playerid, COLOR_WHITE, "/r , /d , (/su)spect , /mdc , /arrest , /seif ");
		    SendClientMessage(playerid, COLOR_WHITE, "/cuff , /duty , /m , /arrest , /take ");
		    SendClientMessage(playerid, COLOR_YELLOW, "=======================================");
		    return 1;
		    }
		else if(P_DATA[playerid][pMember] == 2 || P_DATA[playerid][pLeader] == 2)
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "====== Comenzile Factiunii FBI =======");
		    SendClientMessage(playerid, COLOR_WHITE, "/r , /d , (/su)spect , /mdc , /arrest , /seif ");
		    SendClientMessage(playerid, COLOR_WHITE, "/cuff , /duty , /m , /arrest , /take , /undercover ");
		    SendClientMessage(playerid, COLOR_YELLOW, "=======================================");
		    return 1;
		    }
		else if(P_DATA[playerid][pMember] == 3 || P_DATA[playerid][pLeader] == 3)
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "====== Comenzile Factiunii National Guard =======");
		    SendClientMessage(playerid, COLOR_WHITE, "/r , /d , (/su)spect , /mdc , /arrest /seif ");
		    SendClientMessage(playerid, COLOR_WHITE, "/cuff , /duty , /m , /arrest , /take ");
		    SendClientMessage(playerid, COLOR_YELLOW, "=======================================");
		    return 1;
		    }
   		else if(P_DATA[playerid][pMember] == 4 || P_DATA[playerid][pLeader] == 4)
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "====== Comenzile Factiunii Paramedic =======");
		    SendClientMessage(playerid, COLOR_WHITE, " /duty , /heal , /extinctor , /r , /d ");
		    SendClientMessage(playerid, COLOR_WHITE, "  /accept medic , /canel medic , /seif ");
		    SendClientMessage(playerid, COLOR_YELLOW, "=======================================");
		    return 1;
		       }
   		else if(P_DATA[playerid][pMember] == 5 || P_DATA[playerid][pLeader] == 5)
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "====== Comenzile Factiunii Guvern =======");
		    SendClientMessage(playerid, COLOR_WHITE, " Loading.. ");
		    SendClientMessage(playerid, COLOR_YELLOW, "=======================================");
		    return 1;
		    }
   		else if(P_DATA[playerid][pMember] == 6 || P_DATA[playerid][pLeader] == 6)
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "====== Comenzile Factiunii Taxi =======");
		    SendClientMessage(playerid, COLOR_WHITE, " /f , /fare , /accept taxi , /cancel taxi , /seif");
		    SendClientMessage(playerid, COLOR_YELLOW, "=======================================");
		    return 1;
		    }
		else if(P_DATA[playerid][pMember] == 7 || P_DATA[playerid][pLeader] == 7)
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "====== Comenzile Factiunii Hitman =======");
		    SendClientMessage(playerid, COLOR_WHITE, " /f , /seif , /portable ");
		    SendClientMessage(playerid, COLOR_YELLOW, "=======================================");
		    return 1;
      	 	}
   		else if(P_DATA[playerid][pMember] == 8 || P_DATA[playerid][pLeader] == 8)
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "====== Comenzile News Reporter =======");
		    SendClientMessage(playerid, COLOR_WHITE, " /f , /live , /news , /seif ");
		    SendClientMessage(playerid, COLOR_YELLOW, "=======================================");
		    return 1;
		    }
   		else if(P_DATA[playerid][pMember] == 9 || P_DATA[playerid][pLeader] == 9)
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "====== Comenzile Factiunii KoS =======");
		    SendClientMessage(playerid, COLOR_WHITE, " /f , /seif ");
		    SendClientMessage(playerid, COLOR_YELLOW, "=======================================");
		    return 1;
		    }
       	else if(P_DATA[playerid][pMember] == 10 || P_DATA[playerid][pLeader] == 10)
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "====== Comenzile Factiunii Grove Street =======");
		    SendClientMessage(playerid, COLOR_WHITE, " /f , /healhq , /takeguns , /seif , /war ");
		    SendClientMessage(playerid, COLOR_WHITE, "  /tie , /untie ");
		    SendClientMessage(playerid, COLOR_YELLOW, "=======================================");
		    return 1;
		    }
   		else if(P_DATA[playerid][pMember] == 11 || P_DATA[playerid][pLeader] == 11)
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "====== Comenzile Factiunii Russian Mafia =======");
		    SendClientMessage(playerid, COLOR_WHITE, " /f , /healhq , /takeguns , /seif , /war ");
		    SendClientMessage(playerid, COLOR_WHITE, "  /tie , /untie ");
		    SendClientMessage(playerid, COLOR_YELLOW, "=======================================");
		    return 1;
   			}
       	else if(P_DATA[playerid][pMember] == 12 || P_DATA[playerid][pLeader] == 12)
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "====== Comenzile Factiunii Ballas =======");
		    SendClientMessage(playerid, COLOR_WHITE, " /f , /healhq , /takeguns , /seif , /war ");
		    SendClientMessage(playerid, COLOR_WHITE, "  /tie , /untie ");
		    SendClientMessage(playerid, COLOR_YELLOW, "=======================================");
		    return 1;
		    }
       	else if(P_DATA[playerid][pMember] == 13 || P_DATA[playerid][pLeader] == 13)
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "====== Comenzile Factiunii Los Vagos =======");
		    SendClientMessage(playerid, COLOR_WHITE, " /f , /healhq , /takeguns , /seif , /war ");
		    SendClientMessage(playerid, COLOR_WHITE, "  /tie , /untie ");
		    SendClientMessage(playerid, COLOR_YELLOW, "=======================================");
		    return 1;
		    }
		}
	return 1;
 }

Imagini / Video (optional): Da crash. Adica pawno has stopped working.
Ati incercat sa rezolvati singur?: Nu.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.