ZCMD Command Error, need help
#1

pawn Code:
// OnPlayerZCMDText -- CUSTOM MADE // THINGY!!! LOL!
    CMD:help(playerid, params[])
    {
        SendClientMessage(playerid, COL_YELLOW,":: ACCOUNT :: /rules /stats /account /changename /rules /information");
        SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /doro /wo /knock /doorshout /resetspawn");
        SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /atalk /animlist /stopanim /fuel /use");
        SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /gps /chatmode /fightstyle /(de)attachweapon");
        SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /(sur)render /cophelp /selectspawn");
        SendClientMessage(playerid, COL_YELLOW,":: CHAT :: (/o)oc /me /(ad)vertise (/cw)hisper (/s)hout /(w)hisper (/b) /(l)ocal (/f)action /me /do /togfam /togpm /togphone");
        SendClientMessage(playerid, COL_YELLOW,":: BANK :: /balance /withdraw /deposit /wiretransfer /atm");
            }
            if(IsPlayerVipType(playerid,1))
            {
            SendClientMessage(playerid, COL_YELLOW,":: ACCOUNT :: /rules /stats /account /changename /rules /information");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /doro /wo /knock /doorshout /resetspawn");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /atalk /animlist /stopanim /fuel /use");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /gps /chatmode /fightstyle /(de)attachweapon");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /(sur)render /cophelp /selectspawn");
            SendClientMessage(playerid, COL_YELLOW,":: CHAT :: (/o)oc /me /(ad)vertise (/cw)hisper (/s)hout /(w)hisper (/b) /(l)ocal (/f)action /me /do /togfam /togpm /togphone");
            SendClientMessage(playerid, COL_YELLOW,":: BANK :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: SAPD :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: SAPD :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: SAPD :: /balance /withdraw /deposit /wiretransfer /atm");
            }
            if(IsPlayerVipType(playerid,2))
            {
            SendClientMessage(playerid, COL_YELLOW,":: ACCOUNT :: /rules /stats /account /changename /rules /information");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /doro /wo /knock /doorshout /resetspawn");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /atalk /animlist /stopanim /fuel /use");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /gps /chatmode /fightstyle /(de)attachweapon");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /(sur)render /cophelp /selectspawn");
            SendClientMessage(playerid, COL_YELLOW,":: CHAT :: (/o)oc /me /(ad)vertise (/cw)hisper (/s)hout /(w)hisper (/b) /(l)ocal (/f)action /me /do /togfam /togpm /togphone");
            SendClientMessage(playerid, COL_YELLOW,":: BANK :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: FBI :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: FBI :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: FBI :: /balance /withdraw /deposit /wiretransfer /atm");
            }
            if(IsPlayerVipType(playerid,3))
            {
            SendClientMessage(playerid, COL_YELLOW,":: ACCOUNT :: /rules /stats /account /changename /rules /information");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /doro /wo /knock /doorshout /resetspawn");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /atalk /animlist /stopanim /fuel /use");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /gps /chatmode /fightstyle /(de)attachweapon");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /(sur)render /cophelp /selectspawn");
            SendClientMessage(playerid, COL_YELLOW,":: CHAT :: (/o)oc /me /(ad)vertise (/cw)hisper (/s)hout /(w)hisper (/b) /(l)ocal (/f)action /me /do /togfam /togpm /togphone");
            SendClientMessage(playerid, COL_YELLOW,":: BANK :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: PWORKS :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: PWORKS :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: PWORKS :: /balance /withdraw /deposit /wiretransfer /atm");
            return 1;
            }
Can you guys help me its ZCMD
Reply
#2

............

whats the error?
Reply
#3

Quote:
Originally Posted by RockingCamman
View Post
pawn Code:
// OnPlayerZCMDText -- CUSTOM MADE // THINGY!!! LOL!
    CMD:help(playerid, params[])
    {
        SendClientMessage(playerid, COL_YELLOW,":: ACCOUNT :: /rules /stats /account /changename /rules /information");
        SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /doro /wo /knock /doorshout /resetspawn");
        SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /atalk /animlist /stopanim /fuel /use");
        SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /gps /chatmode /fightstyle /(de)attachweapon");
        SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /(sur)render /cophelp /selectspawn");
        SendClientMessage(playerid, COL_YELLOW,":: CHAT :: (/o)oc /me /(ad)vertise (/cw)hisper (/s)hout /(w)hisper (/b) /(l)ocal (/f)action /me /do /togfam /togpm /togphone");
        SendClientMessage(playerid, COL_YELLOW,":: BANK :: /balance /withdraw /deposit /wiretransfer /atm");
            }
            if(IsPlayerVipType(playerid,1))
            {
            SendClientMessage(playerid, COL_YELLOW,":: ACCOUNT :: /rules /stats /account /changename /rules /information");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /doro /wo /knock /doorshout /resetspawn");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /atalk /animlist /stopanim /fuel /use");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /gps /chatmode /fightstyle /(de)attachweapon");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /(sur)render /cophelp /selectspawn");
            SendClientMessage(playerid, COL_YELLOW,":: CHAT :: (/o)oc /me /(ad)vertise (/cw)hisper (/s)hout /(w)hisper (/b) /(l)ocal (/f)action /me /do /togfam /togpm /togphone");
            SendClientMessage(playerid, COL_YELLOW,":: BANK :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: SAPD :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: SAPD :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: SAPD :: /balance /withdraw /deposit /wiretransfer /atm");
            }
            if(IsPlayerVipType(playerid,2))
            {
            SendClientMessage(playerid, COL_YELLOW,":: ACCOUNT :: /rules /stats /account /changename /rules /information");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /doro /wo /knock /doorshout /resetspawn");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /atalk /animlist /stopanim /fuel /use");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /gps /chatmode /fightstyle /(de)attachweapon");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /(sur)render /cophelp /selectspawn");
            SendClientMessage(playerid, COL_YELLOW,":: CHAT :: (/o)oc /me /(ad)vertise (/cw)hisper (/s)hout /(w)hisper (/b) /(l)ocal (/f)action /me /do /togfam /togpm /togphone");
            SendClientMessage(playerid, COL_YELLOW,":: BANK :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: FBI :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: FBI :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: FBI :: /balance /withdraw /deposit /wiretransfer /atm");
            }
            if(IsPlayerVipType(playerid,3))
            {
            SendClientMessage(playerid, COL_YELLOW,":: ACCOUNT :: /rules /stats /account /changename /rules /information");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /doro /wo /knock /doorshout /resetspawn");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /atalk /animlist /stopanim /fuel /use");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /gps /chatmode /fightstyle /(de)attachweapon");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /(sur)render /cophelp /selectspawn");
            SendClientMessage(playerid, COL_YELLOW,":: CHAT :: (/o)oc /me /(ad)vertise (/cw)hisper (/s)hout /(w)hisper (/b) /(l)ocal (/f)action /me /do /togfam /togpm /togphone");
            SendClientMessage(playerid, COL_YELLOW,":: BANK :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: PWORKS :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: PWORKS :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: PWORKS :: /balance /withdraw /deposit /wiretransfer /atm");
            return 1;
            }
Can you guys help me its ZCMD
pawn Code:
// OnPlayerZCMDText -- CUSTOM MADE // THINGY!!! LOL!
    CMD:help(playerid, params[])
    {
        SendClientMessage(playerid, COL_YELLOW,":: ACCOUNT :: /rules /stats /account /changename /rules /information");
        SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /doro /wo /knock /doorshout /resetspawn");
        SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /atalk /animlist /stopanim /fuel /use");
        SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /gps /chatmode /fightstyle /(de)attachweapon");
        SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /(sur)render /cophelp /selectspawn");
        SendClientMessage(playerid, COL_YELLOW,":: CHAT :: (/o)oc /me /(ad)vertise (/cw)hisper (/s)hout /(w)hisper (/b) /(l)ocal (/f)action /me /do /togfam /togpm /togphone");
        SendClientMessage(playerid, COL_YELLOW,":: BANK :: /balance /withdraw /deposit /wiretransfer /atm");
        if(IsPlayerVipType(playerid,1))
        {
            SendClientMessage(playerid, COL_YELLOW,":: ACCOUNT :: /rules /stats /account /changename /rules /information");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /doro /wo /knock /doorshout /resetspawn");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /atalk /animlist /stopanim /fuel /use");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /gps /chatmode /fightstyle /(de)attachweapon");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /(sur)render /cophelp /selectspawn");
            SendClientMessage(playerid, COL_YELLOW,":: CHAT :: (/o)oc /me /(ad)vertise (/cw)hisper (/s)hout /(w)hisper (/b) /(l)ocal (/f)action /me /do /togfam /togpm /togphone");
            SendClientMessage(playerid, COL_YELLOW,":: BANK :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: SAPD :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: SAPD :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: SAPD :: /balance /withdraw /deposit /wiretransfer /atm");
        }
        if(IsPlayerVipType(playerid,2))
        {
            SendClientMessage(playerid, COL_YELLOW,":: ACCOUNT :: /rules /stats /account /changename /rules /information");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /doro /wo /knock /doorshout /resetspawn");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /atalk /animlist /stopanim /fuel /use");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /gps /chatmode /fightstyle /(de)attachweapon");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /(sur)render /cophelp /selectspawn");
            SendClientMessage(playerid, COL_YELLOW,":: CHAT :: (/o)oc /me /(ad)vertise (/cw)hisper (/s)hout /(w)hisper (/b) /(l)ocal (/f)action /me /do /togfam /togpm /togphone");
            SendClientMessage(playerid, COL_YELLOW,":: BANK :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: FBI :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: FBI :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: FBI :: /balance /withdraw /deposit /wiretransfer /atm");
        }
        if(IsPlayerVipType(playerid,3))
        {
            SendClientMessage(playerid, COL_YELLOW,":: ACCOUNT :: /rules /stats /account /changename /rules /information");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /pay /charity /time /buy /unrentcar /unrentbike /switchkey /id /drink /clothes /doro /wo /knock /doorshout /resetspawn");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licenses /showlicenses(/sl) /report /atalk /animlist /stopanim /fuel /use");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/re)port /cancel /accept /eject /usedrugs /contract /fill /admins (/f)actionlist /gps /chatmode /fightstyle /(de)attachweapon");
            SendClientMessage(playerid, COL_YELLOW,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /knockout /give /gateopen /sid /smoke /(sur)render /cophelp /selectspawn");
            SendClientMessage(playerid, COL_YELLOW,":: CHAT :: (/o)oc /me /(ad)vertise (/cw)hisper (/s)hout /(w)hisper (/b) /(l)ocal (/f)action /me /do /togfam /togpm /togphone");
            SendClientMessage(playerid, COL_YELLOW,":: BANK :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: PWORKS :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: PWORKS :: /balance /withdraw /deposit /wiretransfer /atm");
            SendClientMessage(playerid, COL_YELLOW,":: PWORKS :: /balance /withdraw /deposit /wiretransfer /atm");
        }
        return 1;
    }
It was your brackets, you were closing the function at the first if statement
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)