Jump to content
  • 0

Eroare la compile!


gabbii

Question

Cum pot scapa de erorile astea?

C:\Documents and Settings\AsusPC\Desktop\egammer\samp03\gamemodes\eGamer.pwn(2897) : error 029: invalid expression, assumed zero
C:\Documents and Settings\AsusPC\Desktop\egammer\samp03\gamemodes\eGamer.pwn(2897) : error 029: invalid expression, assumed zero
C:\Documents and Settings\AsusPC\Desktop\egammer\samp03\gamemodes\eGamer.pwn(2897) : error 029: invalid expression, assumed zero
C:\Documents and Settings\AsusPC\Desktop\egammer\samp03\gamemodes\eGamer.pwn(2897) : fatal error 107: too many error messages on one line
Eroarea este la
2894: //---------------------------------------------------------------------------------------------------------
2895:  PutRiotShieldOnBack(playerid)
2896:  {
2897:	    if(IsPlayerAttachedObjectSlotUsed(playerid,1) (RemovePlayerAttachedObject(playerid,1));
2898: 		SetPlayerAttachedObject(playerid, 1 , 18637, 1, 0, -0.1, 0.18, 90, 0, 272, 1, 1, 1);
2899:  }
2900: 
2901:  PutRiotShieldOnArm(playerid)
2901:  {
2902:	    if(IsPlayerAttachedObjectSlotUsed(playerid,1) (RemovePlayerAttachedObject(playerid,1));
2903:		SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
2904: }
2905: 
2906: GiveFlashLight(playerid)
2907: {
2908:	    if(IsPlayerAttachedObjectSlotUsed(playerid,2) (RemovePlayerAttachedObject(playerid,2));
2909: 		SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
2910: }
2911:
2912: GiveTazer(playerid)
2912: {
2913:	    if(IsPlayerAttachedObjectSlotUsed(playerid,2) RemovePlayerAttachedObject(playerid,2));
2914:		SetPlayerAttachedObject(playerid, 2,18642, 5, 0.12, 0.02, -0.05, 0, 0, 45,1,1,1);
2915: }
2916:
2917: public SearchingHit(playerid)
2918: {
2919:	new string[256];
2920:	new giveplayer[MAX_PLAYER_NAME];
2921: 	new searchhit = 0;
2922: 	for(new i=0; i<MAX_PLAYERS; i++)
2923:	{
2924:		if(IsPlayerConnected(i))
2925:		{
		    if(searchhit == 0)
		    {
			    if(PlayerInfo[i][pHeadValue] > 0 && GotHit[i] == 0 && PlayerInfo[i][pMember] != 8)
			    {
			        GetPlayerName(i, giveplayer, sizeof(giveplayer));
			        searchhit = 1;
			        hitfound = 1;
			        hitid = i;
			        for(new k=0; k<MAX_PLAYERS; k++)
					{
						if(IsPlayerConnected(k))
						{
				        	if(PlayerInfo[k][pMember] == 8 || PlayerInfo[k][pLeader] == 8)
				        	{
	               				SendClientMessage(k, COLOR_WHITE, "|__________________ Hitman Agency News __________________|");
				                SendClientMessage(k, COLOR_DBLUE, "*** Incoming Message: A Hit has become available. ***");
				                format(string, sizeof(string), "Person: %s   ID: %d   Value: $%d", giveplayer, i, PlayerInfo[i][pHeadValue]);
								SendClientMessage(k, COLOR_DBLUE, string);
								SendClientMessage(k, COLOR_YELLOW, "Use Givehit hitmanid, to assign the Contract to one of the Hitmans.");
								SendClientMessage(k, COLOR_WHITE, "|________________________________________________________|");
	      					}
					    }
					}
					return 0;
			    }
			}
		}
	}
	if(searchhit == 0)
	{
	    SendClientMessage(playerid, COLOR_GREY, "   No Contracts available !");
	}
	return 0;
}

HELP! nu stiu ce sa mai fac..

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

1.da bravo noi exact stim ce ai tu la linia alia!!!

2.dane scripturile de la linia alia!!!

EDIT:uite ce mia zis mai de mult The Guardian Angel:P

Citeste regulamentul , titlul topicului trebuie sa reflecte problema in sine nu "ajutor" "salvati-ma" , pentru "help me!" nu avem ajutor.

:P

Fara reclama in semnatura!

Link to comment
Share on other sites

Vezi ca n-ai inchis if-urile

*facepalm

Uite asa e bine, erau niste ( ) in plus:

2894: //---------------------------------------------------------------------------------------------------------
2895:  PutRiotShieldOnBack(playerid)
2896:  {
2897:	    if(IsPlayerAttachedObjectSlotUsed(playerid,1) RemovePlayerAttachedObject(playerid,1);
2898: 		SetPlayerAttachedObject(playerid, 1 , 18637, 1, 0, -0.1, 0.18, 90, 0, 272, 1, 1, 1);
2899:  }
2900: 
2901:  PutRiotShieldOnArm(playerid)
2901:  {
2902:	    if(IsPlayerAttachedObjectSlotUsed(playerid,1) RemovePlayerAttachedObject(playerid,1);
2903:		SetPlayerAttachedObject(playerid, 1, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);
2904: }
2905: 
2906: GiveFlashLight(playerid)
2907: {
2908:	    if(IsPlayerAttachedObjectSlotUsed(playerid,2) RemovePlayerAttachedObject(playerid,2);
2909: 		SetPlayerAttachedObject(playerid, 2,18641, 5, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);
2910: }
2911:
2912: GiveTazer(playerid)
2912: {
2913:	    if(IsPlayerAttachedObjectSlotUsed(playerid,2) RemovePlayerAttachedObject(playerid,2);
2914:		SetPlayerAttachedObject(playerid, 2,18642, 5, 0.12, 0.02, -0.05, 0, 0, 45,1,1,1);
2915: }

EDIT: Al 2600-lea meu post (again).

Link to comment
Share on other sites

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.