ERROR!! :(
#1

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

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?
Reply
#3

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

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

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

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

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);
        }
Reply
#8

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

Edit: Deleted
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)