Jump to content

Question

Posted

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..

6 answers to this question

Recommended Posts

Posted

incearca daca iti merge asa:

[pawn]

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[pHeadValue] > 0 && GotHit == 0 && PlayerInfo[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[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;

}

[/pawn]

sper sa-ti mearga..;)

EDIT stuntman: Am editat eu putin, ca ai uitat sa scoti si o ).

Fara reclama in semnatura!

Posted

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..

incearca:

[pawn]

2894: //---------------------------------------------------------------------------------------------------------

2895:  PutRiotShieldOnBack(playerid)

2896:  {

2897:     if(IsPlayerAttachedObjectSlotUsed(playerid,1) ) { RemovePlayerAttachedObject(playerid,1); }

2898:          else  { 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:     else { 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)) if { RemovePlayerAttachedObject(playerid,2); }

2909:     else { 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)) if { RemovePlayerAttachedObject(playerid,2); }

2914:     else { SetPlayerAttachedObject(playerid, 2,18642, 5, 0.12, 0.02, -0.05, 0, 0, 45,1,1,1); }

2915: }

[/pawn]

Posted

Tot nu merge acum imi da alte erori..

C:\Documents and Settings\AsusPC\Desktop\egammer\samp03\gamemodes\eGamer.pwn(2890) : error 029: invalid expression, assumed zero
C:\Documents and Settings\AsusPC\Desktop\egammer\samp03\gamemodes\eGamer.pwn(2890) : warning 215: expression has no effect
C:\Documents and Settings\AsusPC\Desktop\egammer\samp03\gamemodes\eGamer.pwn(2890) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\AsusPC\Desktop\egammer\samp03\gamemodes\eGamer.pwn(2890) : error 029: invalid expression, assumed zero
C:\Documents and Settings\AsusPC\Desktop\egammer\samp03\gamemodes\eGamer.pwn(2890) : fatal error 107: too many error messages on one line

Posted

Da mie imi da eroare mereu doar la linia asta

if(IsPlayerAttachedObjectSlotUsed(playerid,1) RemovePlayerAttachedObject(playerid,1);

Posted

[pawn]if(IsPlayerAttachedObjectSlotUsed(playerid,1) RemovePlayerAttachedObject(playerid,1);[/pawn]

schimba in:

[pawn]if( IsPlayerAttachedObjectSlotUsed( playerid, 1 ) ) RemovePlayerAttachedObject( playerid, 1 );[/pawn]

142sj0l.png

Underground-GFX

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.