Jetpack command not working
#8

Quote:
Originally Posted by FireWarrior101
Посмотреть сообщение
////////////////////////////////////////////////SERVER CMDS///////////////////////////
//JETPACK
COMMAND:jetpack(playerid, params[])
{
if(gPlayerClass[playerid] != JETTROOPER);
{
SendClientMessage(playerid, COLOR_RED, "[ERROR] {FFFFFF} Only Jettroopers can use jetpack");
}
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USE JETPACK);
SendClientMessage(playerid, COLOR_RED, "{C3C3C3}[SERVER] {FFFFFF}You have successfully spawned a jetpack");
}

i am working with this include

#include <zcmd>//cmd Include

i am making this jetpack command for a class so please help me correct it
TIP : next time use [PAWN] [&/PAWN] with out & of course

Ok , i see that you fergot "else" so instend of yours use this :

pawn Код:
//JETPACK
COMMAND:jetpack(playerid, params[])
{
    if(gPlayerClass[playerid] !=  JETTROOPER);
    {
        SendClientMessage(playerid, COLOR_RED, "[ERROR] {FFFFFF} Only Jettroopers can use jetpack");
    }
    else if(gPlayerClass[playerid] == JETTROOPER);
    {
        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
        SendClientMessage(playerid, COLOR_RED, "{C3C3C3}[SERVER] {FFFFFF}You have successfully spawned a jetpack");
    }
}
NOTE : maybe because you forget to set his class as jettrooper some where in your script
Reply


Messages In This Thread
Jetpack command not working - by FireWarrior101 - 01.08.2013, 16:28
Re: Jetpack command not working - by FireWarrior101 - 01.08.2013, 17:38
Re: Jetpack command not working - by JimmyCh - 01.08.2013, 17:41
Re: Jetpack command not working - by Konstantinos - 01.08.2013, 17:48
Re: Jetpack command not working - by FireWarrior101 - 01.08.2013, 17:55
Re: Jetpack command not working - by JimmyCh - 01.08.2013, 17:56
Re: Jetpack command not working - by Konstantinos - 01.08.2013, 17:57
Re: Jetpack command not working - by Chrisis - 01.08.2013, 18:08
Re: Jetpack command not working - by FireWarrior101 - 01.08.2013, 19:20
Re: Jetpack command not working - by Necip - 01.08.2013, 19:23

Forum Jump:


Users browsing this thread: 1 Guest(s)