What is wrong with this cmd
#1

pawn Код:
cmd(adminhelp, playerid, params[])
{
if(GetPVarInt(playerid, "Admin") < 1)return SendMessage(playerid, "You can't use this command!");
SendClientMessage(playerid, green,"=========================== ADMIN COMMANDS ===========================");
SendClientMessage(playerid, red,"/adel /apark /freeplayer /adminkill /getplayerhere /tptoplayer /healplayer /resetplayerweapons /kickplayer");
SendClientMessage(playerid, red,"/banplayer /weather /makehouse /makebuilding /buildingint /movebuilding /movehouse /houseint /test /coolmode /update");
SendClientMessage(playerid, red,"/getcar /gotoc /areg /entercar /entercar1 /rv(resetcars) /addland /docar(abletoenterallcars) /makeadmin ");
SendClientMessage(playerid, red,"/addname /disableooc  ");
return 1;
}
The other commands are working but this isnt its a bug or what i did wrong? Thanks for help
Reply
#2

What is the bug..?
Reply
#3

This is saying unktown command
Reply
#4

pawn Код:
cmd(adminhelp, playerid, params[])
{
    if(GetPVarInt(playerid, "Admin") < 1)return SendMessage(playerid, "You can't use this command!");
    {
        SendClientMessage(playerid, green,"=========================== ADMIN COMMANDS ===========================");
        SendClientMessage(playerid, red,"/adel /apark /freeplayer /adminkill /getplayerhere /tptoplayer /healplayer /resetplayerweapons /kickplayer");
        SendClientMessage(playerid, red,"/banplayer /weather /makehouse /makebuilding /buildingint /movebuilding /movehouse /houseint /test /coolmode /update");
        SendClientMessage(playerid, red,"/getcar /gotoc /areg /entercar /entercar1 /rv(resetcars) /addland /docar(abletoenterallcars) /makeadmin ");
        SendClientMessage(playerid, red,"/addname /disableooc  ");
    }
    return 1;
}
Reply
#5

so bad lol thank you
Reply
#6

i tested it again and is not working too someone can help?
Reply
#7

anyone know why this isnt working
Reply
#8

Look at your pVar..
Reply
#9

Try to add an else statement? Like:
pawn Код:
if(GetPVarInt(playerid, "Admin") < 1)return SendMessage(playerid, "You can't use this command!");
else
{
    //Code Here
}
I had to do this sometimes in my script
Reply
#10

hm ok let me test this out
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)