Several commands, error ???
#1

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/skatepark", cmdtext, true, 10) == 0)
    {
    SetPlayerPos(playerid,1893.8850,-1388.2507,13.5703);
    SendClientMessage(playerid, COLOR_BLACK , "Have fun in skatepark!");
        // Do something here
    }
    if (strcmp("/commands", cmdtext, true, 10) == 0)
    {
            SendClientMessage(playerid,COLOR_YELLOW, "/skatepark");
	}
	if (strcmp("/kill", cmdtext, true, 10) == 0)
			SetPlayerHealth(playerid,0.0);
	}
			 return 1;
    }
	return 0;
}
Код:
And I get this error
C:\Documents and Settings\Дgaren\Skrivbord\SERVER\gamemodes\Hudgens.pwn(136) : error 010: invalid function or declaration
C:\Documents and Settings\Дgaren\Skrivbord\SERVER\gamemodes\Hudgens.pwn(138) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply


Messages In This Thread
Several commands, error ??? - by Hudgens - 31.10.2010, 14:22
Re: Several commands, error ??? - by admantis - 31.10.2010, 14:24
Re: Several commands, error ??? - by admantis - 31.10.2010, 14:26
Re: Several commands, error ??? - by Hudgens - 31.10.2010, 14:28
Re: Several commands, error ??? - by admantis - 31.10.2010, 14:29
Re: Several commands, error ??? - by Hudgens - 31.10.2010, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)