zcmd Help
#1

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[] )
Reply
#2

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;
}
Reply
#3

Read this carefully.
Reply
#4

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


Forum Jump:


Users browsing this thread: 1 Guest(s)