NO commands are working?
#1

Hey, there. I'm trying to script my own gamemode, but with no commands, that's not easy.
So, I have absolutely no clue what so ever what might cause the problem, so therefore, I can't post any lines, if you don't ask for them.
I'm using ZCMD, and sscanf, server is 0.3d-R2.
Thanks for any help
Reply
#2

Quote:

I'm trying to script my own gamemode, but with no commands,

What do you mean you want to script the GM Without Commands ?
Reply
#3

Do you commands commands that they don't work?
Can you be more specific.
Reply
#4

If you have commands but they return Server Unknown Command, look under OnPlayerCommandText. Make sure it returns 0; and if that doesn't work. try change it to return 1; For example.



You don't need to do the /mycommand that was an example but make sure it has return 0; Outside of that bracket. I use ZCMD too so just delete that /mycommand part.
Reply
#5

..Ofcourse I want to have commands.
I make the commands, but they do not work, and they don't return "Server unknown Command" either
Reply
#6

Show us a command of your script that it doesn't work.
Reply
#7

None of my commands work.
Reply
#8

Okay dude, but show one of them. Post it here
Reply
#9

Alright
pawn Код:
CMD:scriptinfo(playerid, params[])
{
    new str1[128], str2[128], str3[128], str4[128];
    format(str1, sizeof(str1), "Developer: %s", DEVELOPER);
    format(str2, sizeof(str2), "Mapper: %s", MAPPER);
    format(str3, sizeof(str3), "Version: %s", VERSION);
    format(str4, sizeof(str4), "Web Designer: %s", WEB_DESIGNER);
    SendClientMessage(playerid, COLOR_GREEN, "----------------------------------");
    SendClientMessage(playerid, COLOR_SYSTEM, str1);
    SendClientMessage(playerid, COLOR_SYSTEM, str2);
    SendClientMessage(playerid, COLOR_SYSTEM, str3);
    SendClientMessage(playerid, COLOR_SYSTEM, str4);
    SendClientMessage(playerid, COLOR_GREEN, "----------------------------------");
    return 1;
}
Reply
#10

where did you define these
pawn Код:
DEVELOPER
...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)