ZCMD command not performed? :\\ - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ZCMD command not performed? :\\ (
/showthread.php?tid=257192)
ZCMD command not performed? :\\ -
Seven_of_Nine - 24.05.2011
Click me.
This is the part of my code, still nothing. I got "SERVER: Unknown command."
Humm? :[
Re: ZCMD command not performed? :\\ -
Seven_of_Nine - 25.05.2011
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.
Re: ZCMD command not performed? :\\ -
[DM]Kane - 25.05.2011
Quote:
Originally Posted by ******
Use return 0 - return 1 tells ZCMD that the command has been processed, just like in OnPlayerCommandText.
|
^This is it.
Re: ZCMD command not performed? :\\ -
Seven_of_Nine - 25.05.2011
Still no result? Ah gawd why isn't it working..
I don't get any "doh"s and it says Unknown Command.
Re: ZCMD command not performed? :\\ -
ylleron - 25.05.2011
man. i delete my pwn files i am very very very nervous!!! because i have same problem. but you know it
Re: ZCMD command not performed? :\\ -
Seven_of_Nine - 25.05.2011
I got enough.
THIS IS THE WHOLE FS:
Here it is.
Re: ZCMD command not performed? :\\ -
Biesmen - 26.05.2011
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.
Re: ZCMD command not performed? :\\ -
Seven_of_Nine - 26.05.2011
If somebody knows (like umm.. ******?

) then
please correct it for me! :[
I really need this.. :\