HELPPP!!!
#4

@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:
PHP код:
otherfunction() {
    
forward KickPlayer(playerid);
    public 
KickPlayer(playerid) {
       
Kick(targetid); 
    }
    return 
1;

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:

PHP код:
otherfunction() {
    return 
1;
}
forward KickPlayer(targetid); 
public 
KickPlayer(targetid

    return 
Kick(targetid); 

Reply


Messages In This Thread
HELPPP!!! - by iCurse - 09.04.2016, 04:00
Re: HELPPP!!! - by shourya12 - 09.04.2016, 04:12
Re: HELPPP!!! - by iCurse - 09.04.2016, 04:16
Re: HELPPP!!! - by AndySedeyn - 09.04.2016, 04:19
Re: HELPPP!!! - by SyS - 09.04.2016, 04:19
Re: HELPPP!!! - by iCurse - 09.04.2016, 05:10
Respuesta: HELPPP!!! - by Thewin - 09.04.2016, 05:18
Re: HELPPP!!! - by -CaRRoT - 09.04.2016, 05:55
Re: HELPPP!!! - by iCurse - 09.04.2016, 06:01
Re: HELPPP!!! - by SyS - 09.04.2016, 06:03

Forum Jump:


Users browsing this thread: 1 Guest(s)