ERROR CMDS NOT WORKING
#1

My samp CMDS not working at all...they stopped working WITHOUT ME DOING ANYTHING WTF man...........
Reply
#2

Is mind that server cmds are simple

CMD:

but i have used #include <zcmd>

?
Reply
#3

Does your pawno compile it without any errors?
And can you show to me how do you use your ZCMD?
Reply
#4

I didint script the CMDS.......my PAWNO error shower CRASHES when i click COMPILE but it comples but when i run server it doesnt work plz HELP!!!!!!!
Reply
#5

Compiler crashing - "Aborting" the compiling.
You're probably missing a bracket..
Reply
#6

Well, if you don't know which of the CMDs causes the problem, can you give us the whole cmd list you have?
Reply
#7

make sure that you are using ZCMD like this:

pawn Код:
CMD:kill(playerid, params[])
{
    SetPlayerHealth(playerid,0);
    return 1;
}
without missing any brackets
Reply
#8

Nope i dont use ZCMD look what i use

if(strcmp(cmd, "/help", true) == 0)
{
if(GetPVarInt(playerid, "Logged") == 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You are not logged in!");
return 1;
}
ShowPlayerDialog(playerid,11,DIALOG_STYLE_MSGBOX," Help","/buylevel /stats /help /kill /class /blockpm /g /pm","Okay","");
return 1;
}
Reply
#9

pawn Код:
if(strcmp(cmd, "/help", true) == 0)
    {
        if(GetPVarInt(playerid, "Logged") == 0)
        {
            SendClientMessage(playerid, COLOR_LIGHTRED, "You are not logged in!");
            return 1;
        }
        ShowPlayerDialog(playerid,11,DIALOG_STYLE_MSGBOX,"Help","/buylevel /stats /help /kill /class /blockpm /g /pm","Okay","");
        return 1;
    }
ShowPlayerDialog should be done like this

pawn Код:
else
   {
    ShowPlayerDialog(blablabla);
    return 1;
    }
I reckon using ZCMD, as its just easier. If you want, PM me your code and I'll fix the errors and change to zcmd.
Reply
#10

pawn Код:
if(strcmp(cmd, "/help", true) == 0)
    {
        if(GetPVarInt(playerid, "Logged") == 0)
        {
            SendClientMessage(playerid, COLOR_LIGHTRED, "You are not logged in!");
        }  
        else
        {
           ShowPlayerDialog(playerid,11,DIALOG_STYLE_MSGBOX," Help","/buylevel /stats /help /kill /class /blockpm /g /pm","Okay","");
        }
        return 1;
    }
Hope that will do. But I'd suggest to use ZCMD, it's much more simple, and much better.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)