Need help to convert strcmp to Zcmd - 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: Need help to convert strcmp to Zcmd (
/showthread.php?tid=237402)
Need help to convert strcmp to Zcmd -
Vukilore - 09.03.2011
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
Re: Need help to convert strcmp to Zcmd -
Mean - 09.03.2011
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.
Re : Need help to convert strcmp to Zcmd -
Vukilore - 10.03.2011
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.