[HELP] Creating a new command...
#5

Quote:
Originally Posted by milanosie
View Post
Thats basiclly an exact copy of what I siad.
It's totally different, because you told him to add the forward but still that won't work
pawn Code:
forward GetUp(playerid);                          // <-
public GetUp(playerid)
{
    new cmd[256];
    cmd = strtok(cmd);
    if(strcmp(cmd, "/getup", true) == 0) {
        new Float:health;
        GetPlayerHealth(playerid,health);
        if(health <= 20) {
            SetPlayerHealth(playerid, 25);
            TogglePlayerControllable(playerid,1);
        }
    }
    return 1;
}
// Thats wrong because all the command inside the custom callback will be undefined symbols.
Reply


Messages In This Thread
[HELP] Creating a new command... [STILL NEED HELP] - by Da' J' - 19.01.2012, 16:41
Re: [HELP] Creating a new command... - by milanosie - 19.01.2012, 16:44
Re: [HELP] Creating a new command... - by Konstantinos - 19.01.2012, 16:55
Re: [HELP] Creating a new command... - by milanosie - 19.01.2012, 17:14
Re: [HELP] Creating a new command... - by Konstantinos - 19.01.2012, 17:26
Re: [HELP] Creating a new command... - by milanosie - 19.01.2012, 18:10
Re: [HELP] Creating a new command... - by Da' J' - 19.01.2012, 18:11
Re: [HELP] Creating a new command... - by mSp - 19.01.2012, 18:22
Re: [HELP] Creating a new command... - by Da' J' - 19.01.2012, 18:44
Re: [HELP] Creating a new command... - by mSp - 19.01.2012, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)