SA-MP Forums Archive
ZCMD error - 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 error (/showthread.php?tid=264453)



ZCMD error - tbedy - 26.06.2011

i want to optimize smao commands from strcmp to ZCMD, and now i have 4 errors:

Код:
C:\Documents and Settings\Toni Tomas\Desktop\Windows\filterscripts\vjencanje.pwn(175) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Toni Tomas\Desktop\Windows\filterscripts\vjencanje.pwn(175) : error 017: undefined symbol "cmd_crkva"
C:\Documents and Settings\Toni Tomas\Desktop\Windows\filterscripts\vjencanje.pwn(175) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Toni Tomas\Desktop\Windows\filterscripts\vjencanje.pwn(175) : fatal error 107: too many error messages on one line

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


4 Errors.
Код:
	CMD:crkva(playerid, params[]) {
	    return SetPlayerPos(playerid,-1982.7188,1117.4697,53.1237);
	}



Re: ZCMD error - Zh3r0 - 26.06.2011

Commands like there get created outside any public.


Re: ZCMD error - Skaizo - 26.06.2011

Код:
OnPlayerCommandReceived(playerid, cmdtext[])
{
   return 1;
}
COMMAND:crkva(playerid, params[]) 
{
   return SetPlayerPos(playerid,-1982.7188,1117.4697,53.1237);
   return 1;
}
or:
Код:
OnPlayerCommandReceived(playerid, cmdtext[])
{
   return 1;
}
COMMAND:crkva(playerid, params[]) 
{
   return SetPlayerPos(playerid,-1982.7188,1117.4697,53.1237);
}
I edited


Re: ZCMD error - tbedy - 26.06.2011

Quote:
Originally Posted by Skaizo
Посмотреть сообщение
Код:
CMD:crkva(playerid, params[]) 
{
   return SetPlayerPos(playerid,-1982.7188,1117.4697,53.1237);
   return 1;
}
or:
Код:
CMD:crkva(playerid, params[]) 
{
   return SetPlayerPos(playerid,-1982.7188,1117.4697,53.1237);
}
i wrote trhis, but nothing, again same problems


Re: ZCMD error - tbedy - 26.06.2011

this commands are in callback "onplayercommandtext", did i need to delete this allback and stay only commands1


Re: ZCMD error - Tachibana - 26.06.2011

Quote:
Originally Posted by tbedy
Посмотреть сообщение
this commands are in callback "onplayercommandtext", did i need to delete this allback and stay only commands1
ZCMD dont need to be made in callback onplayercommandtext u can place them where ever u want


Re: ZCMD error - Tachibana - 26.06.2011

EDIT: REMOVE IT SOME HOW I GOT DOUBLE POSTED!