SA-MP Forums Archive
ERROR!! :( - 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: ERROR!! :( (/showthread.php?tid=438043)



ERROR!! :( - Nivniv2 - 18.05.2013

pawn Код:
if(PlayerInfo[playerid][pMember] <= 0 || PlayerInfo[playerid][pLeader] <= 0 || PlayerInfo[playerid][pDuty] = 0); //error line
        {
            format(string, sizeof(string), "%s says: %s", sendername, text);
            ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
        }
must be lvalue (non-constant)
expression has no effect
expected token: ";", but found ")"
invalid expression, assumed zero
too many error messages on one line


Re: ERROR!! :( - Threshold - 18.05.2013

Again, as I just mentioned in your previous thread about the same error, the solution is to fix the final else statement.

pawn Код:
PlayerInfo[playerid][pDuty] == 0
EDIT: Or in this case, you might be looking for:
pawn Код:
PlayerInfo[playerid][pDuty] <= 0
EDIT #2: @Below Poster :O 0_0 o_0 :S :l o.o - wtf is that going to solve?


Re : ERROR!! :( - Rayan_black - 18.05.2013

pawn Код:
PlayerInfo[playerid][pMember] == 0
PlayerInfo[playerid][pLeader] == 0
Try this.


Re: ERROR!! :( - Nivniv2 - 18.05.2013

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
Again, as I just mentioned in your previous thread about the same error, the solution is to fix the final else statement.

pawn Код:
PlayerInfo[playerid][pDuty] == 0
EDIT: Or in this case, you might be looking for:
pawn Код:
PlayerInfo[playerid][pDuty] <= 0
EDIT #2: @Below Poster :O 0_0 o_0 :S :l o.o - wtf is that going to solve?
Same thing.


Re : Re: ERROR!! :( - Rayan_black - 18.05.2013

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
EDIT #2: @Below Poster :O 0_0 o_0 :S :l o.o - wtf is that going to solve?
He's checking if someone is EQUAL or LESS than 0, I don't know but I think that he doesn't need to check if it's less than 0.


Re: ERROR!! :( - Threshold - 18.05.2013

You still have the ';' on the end... how many times does one person have to remind you to remove it??


Re: ERROR!! :( - Nivniv2 - 18.05.2013

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
You still have the ';' on the end... how many times does one person have to remind you to remove it??
DUDE i deleted it..
pawn Код:
if(PlayerInfo[playerid][pMember] <= 0 || PlayerInfo[playerid][pLeader] <= 0 || PlayerInfo[playerid][pDuty] == 0)
        {
            format(string, sizeof(string), "%s says: %s", sendername, text);
            ProxDetector(20.0, playerid,string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            SetPlayerChatBubble(playerid,text,COLOR_WHITE,20.0,5000);
        }



Re: ERROR!! :( - Threshold - 18.05.2013

Show us your whole OnPlayerText AND where you have defined pLeader, pMember, pDuty and PlayerInfo...


Re: ERROR!! :( - Dragonsaurus - 18.05.2013

Edit: Deleted