Need help to convert strcmp to Zcmd
#1

Hi, i'm a beginner, and i would like convert this code into Zcmd, i tried alot of tutoriel, but i always found any error
(sorry for english, i'm french)


Great Thank's to you for help
Reply
#2

If you are converting, replace with
pawn Код:
CMD:command( playerid, params[ ] )
And replace all of the "cmdtext" with "params"
So if you did
pawn Код:
format( string, sizeof string, "%s", cmdtext[ 1 ] );
Now you will do
pawn Код:
format( string, sizeof string, "%s", params );
cmdtext will turn into params.
Reply
#3

I've the error :
Код:
 
C:\Documents and Settings\///////////\gamemodes\zm.pwn(1891) : error 010: invalid function or declaration
C:\Documents and Settings\///////////\gamemodes\zm.pwn(2193) : warning 219: local variable "index" shadows a variable at a preceding level
C:\Documents and Settings\///////////\gamemodes\zm.pwn(2212) : warning 203: symbol is never used: "cmd"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)