09.04.2016, 04:19
@shourya12, nothing in that code relates with the enum or other parts of his code other than that function.
The problem is that you have a bracket too much at the end. Possibly from another function. All your functions should be declared outside the scope of other functions.
This is what it would look like if you had functions declared inside another one:
The example above is completely wrong since you can't declare functions within another function. Thus, we must go outside the scope of all functions to declare them:
The problem is that you have a bracket too much at the end. Possibly from another function. All your functions should be declared outside the scope of other functions.
This is what it would look like if you had functions declared inside another one:
PHP код:
otherfunction() {
forward KickPlayer(playerid);
public KickPlayer(playerid) {
Kick(targetid);
}
return 1;
}
PHP код:
otherfunction() {
return 1;
}
forward KickPlayer(targetid);
public KickPlayer(targetid)
{
return Kick(targetid);
}