ZCMD command not performed? :\\
#1

Click me.

This is the part of my code, still nothing. I got "SERVER: Unknown command."


Humm? :[
Reply
#2

pawn Код:
public OnCommandReceived(playerid,cmdtext[]) {
    print("doh");
    new file[256];
    for(new i = 0; i < MaxTeles; i++) {
        print("doh1");
        format(file,sizeof(file),FileID,i);
        if(!dini_Exists(file)) continue;
        if(strcmp(dini_Get(file, "Command"),cmdtext,true) == 0) {
            new Float:pos[2+1],name[30];
            pos[0] = dini_Float(file, "X");
            pos[1] = dini_Float(file, "Y");
            pos[2] = dini_Float(file, "Z");
            name = dini_Get(file, "Name");
            return SendFormattedMessage(playerid,-1,"You have teleported to %s.",name);
        }
    }
}
pawn Код:
COMMAND:tpse(playerid) {
    print("dohhh");
    if(GetPVarInt(playerid,"LoggedIn") == 0 && !IsPlayerAdmin(playerid)) {
        return DialogLogin(playerid);
    } else {
        return DialogMenu(playerid);
    }
    return 1;
}
pawn Код:
#define FILTERSCRIPT

#include <a_samp>
#include <dini>
#include <zcmd>
BAAAH. Unknown command.
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
Use return 0 - return 1 tells ZCMD that the command has been processed, just like in OnPlayerCommandText.
^This is it.
Reply
#4

Still no result? Ah gawd why isn't it working..

I don't get any "doh"s and it says Unknown Command.
Reply
#5

man. i delete my pwn files i am very very very nervous!!! because i have same problem. but you know it
Reply
#6

I got enough.
THIS IS THE WHOLE FS:
Here it is.
Reply
#7

Read the rules of this forum section.
If you do not get a reply, people do not know the answer. You can always retry after 48 hours.
I don't know the answer neither.
Then why did you post here? Because you don't seem to know the forum rules.
Reply
#8

If somebody knows (like umm.. ******? ) then please correct it for me! :[

I really need this.. :\
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)