10.11.2015, 19:10
Can I slap anyone who says "just warnings"? Warnings describes situations that are syntactically correct but logically wrong and YES, they can and will affect the gamemode and can lead to serious bugs. Consider this piece of code:
That will give an unintended assignment warning. But if you choose to ignore it ("because it's just a warning") then you will have a very serious privilege escalation bug, because that player's admin level gets set to 5 regardless of anything else.
PHP код:
if(PlayerInfo[playerid][pAdmin] = 5)