07.01.2012, 00:35
This error happens when you put the value to return if the inside out and then making two return times can not read right, or if you do not finish or else return and place already.
ex:
Wrong:
Correct:
or
Wrong:
Correct:
I'm Brasilian ^^ Helped = Reputation ^^
ex:
Wrong:
Код:
stock ADMIN(playerid) { if(PlayerInfo[playerid][pAdmin] >= 5) { SendClientMessage(playerid, COLOR_WHITE, " Unable Code!!!"); return 1; } return 1; }
Код:
stock ADMIN(playerid) { if(PlayerInfo[playerid][pAdmin] >= 5) { SendClientMessage(playerid, COLOR_WHITE, " No Unable Code!!!"); return 1; } //return 1; = No Unable Code }
Wrong:
Код:
stock ADMIN(playerid); { if(PlayerInfo[playerid][pAdmin]>= 5) { SendClientMessage(playerid, COLOR_WHITE, " Do not Good Coder!!!"); return 1; SendClientMessage(playerid, COLOR_WHITE, " Unable Code!!!"); return 1; } }
Код:
stock ADMIN(playerid); { if(PlayerInfo[playerid][pAdmin]>= 5) { SendClientMessage(playerid, COLOR_WHITE, " I Good Coder!!!"); SendClientMessage(playerid, COLOR_WHITE, " Unable Code!!!"); return 1; } }