ZCMD error
#1

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

Commands like there get created outside any public.
Reply
#3

Код:
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
Reply
#4

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
Reply
#5

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

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
Reply
#7

EDIT: REMOVE IT SOME HOW I GOT DOUBLE POSTED!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)