Whats wrong with this script?
#1

Okay, I created a gate command, here it is
Top line is line 11656
Bottom line is 11666
Код:
 if (strcmp(cmdtext, "/agateo", true)==0)
{
    if(AccountInfo[playerid][aLevel] <= 0) SendClientMessage(playerid, COLOR_RED, "You need to be a Helper to use the gate command!");
 {
 MoveObject(agate,-1470.45617676,2611.21215820,50);
 SendClientMessage(playerid, COLOR_YELLOW, "You open the admin gates!");
 }
	if (strcmp(cmdtext, "/agatec", true)==0)
{
    if(AccountInfo[playerid][aLevel] <= 0) SendClientMessage(playerid, COLOR_RED, "You need to be a Helper to use the gate command!");
 {
 MoveObject(agate,-1470.45617676,2611.21215820,59.36460876);
 SendClientMessage(playerid, COLOR_YELLOW, "You close the admin gates!");
 }
but when I compile it I get
Код:
C:\Users\JoshLovely\Desktop\CNR-H.pwn(1634) : error 029: invalid expression, assumed zero
C:\Users\JoshLovely\Desktop\CNR-H.pwn(11656) : error 010: invalid function or declaration
C:\Users\JoshLovely\Desktop\CNR-H.pwn(11658) : error 010: invalid function or declaration
C:\Users\JoshLovely\Desktop\CNR-H.pwn(11663) : error 010: invalid function or declaration
C:\Users\JoshLovely\Desktop\CNR-H.pwn(11665) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
anyone know why?
Reply


Messages In This Thread
Whats wrong with this script? - by patfay - 29.01.2011, 22:51
Re: Whats wrong with this script? - by Conroy - 29.01.2011, 22:56
Re: Whats wrong with this script? - by bartje01 - 29.01.2011, 22:57
Re: Whats wrong with this script? - by bartje01 - 29.01.2011, 23:16
Re: Whats wrong with this script? - by patfay - 29.01.2011, 23:19
Re: Whats wrong with this script? - by bartje01 - 29.01.2011, 23:29
Re: Whats wrong with this script? - by SchurmanCQC - 29.01.2011, 23:33
Re: Whats wrong with this script? - by patfay - 30.01.2011, 01:26

Forum Jump:


Users browsing this thread: 1 Guest(s)