SA-MP Forums Archive
zcmd Help - 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 Help (/showthread.php?tid=231791)



zcmd Help - Speed - 26.02.2011

When I compile i got that errors:

Код:
C:\Documents and Settings\User\Desktop\Sniper.pwn(59) : error 025: function heading differs from prototype
C:\Documents and Settings\User\Desktop\Sniper.pwn(61) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\Sniper.pwn(61) : error 017: undefined symbol "cmd_kami"
C:\Documents and Settings\User\Desktop\Sniper.pwn(61) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\Sniper.pwn(61) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Код:
Line 59: public OnPlayerCommandText(playerid, params[])
Line 61: COMMAND:kami( playerid, params[] )



Re: zcmd Help - xRyder - 26.02.2011

You shouldn't do your commands (ZCMD) under OnPlayerCommandText() callback.
Place it in the bottom of your script.

So it's like this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    return 0;
}

COMMAND:something(playerid, params[])
{
    return 1;
}



Re: zcmd Help - Mean - 26.02.2011

Read this carefully.


Re: zcmd Help - Speed - 26.02.2011

OH, ty i delete public OnPlayerCommandText and now work Thank you again