Posts: 321
Threads: 93
Joined: Jun 2009
Reputation:
0
hello guys...i try to test to see if my kick command work in my script but while i am in the game and type this /kickme why doesn't appear nothing ?
here is my code...
if (strcmp("/Kickplayer", cmdtext, true, 10) == 0)
{
Kick(playerid);
return 1;
}
Posts: 321
Threads: 93
Joined: Jun 2009
Reputation:
0
i am getting this warning if i use your code dice7........> this code
(strcmp("/Kickplayer", cmdtext, 11) == 0)
C:\PROGRA~1\ROCKST~1\SERVER~1\GAMEMO~1\new.pwn(276 ) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Posts: 717
Threads: 11
Joined: Jul 2008
Reputation:
0
I would suggest you to use the sscanf function from ******. Its a good start for newbies to go with dcmd and sscanf as its the easiest way to work around. As we all know programmers are lazy so just use it and make a different function out of the command and you'll be just fine.
Posts: 321
Threads: 93
Joined: Jun 2009
Reputation:
0
MenaceX last code what you gave to me is compile...but now in game when i type /kickme why appear
"Server:UnknownCommand"?
if(!strcmp(cmdtext,"/kickplayer",true))
please help