Problem | Command
#1

Hello.
So i got the command /clothes
Код:
if(strcmp(cmd, "/clothes", true) == 0)
  {
  if(IsPlayerConnected(playerid))
	{
  if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 2)
			{
  if (PlayerToPoint(5.0, playerid,1158.2600,-1343.6401,2358.4517))
					{
					ShowMenuForPlayer(Clothes, playerid);
    			TogglePlayerControllable(playerid, 0);
          }
        }
			}
 		}
		return 1;
  		}
And the errors

Код:
C:\Documents and Settings\Yarik\Desktop\CD-Disabler 1.2\one of the best edits\gamemodes\crp.pwn(14869) : warning 209: function "OnPlayerCommandText" should return a value
C:\Documents and Settings\Yarik\Desktop\CD-Disabler 1.2\one of the best edits\gamemodes\crp.pwn(14870) : error 010: invalid function or declaration
C:\Documents and Settings\Yarik\Desktop\CD-Disabler 1.2\one of the best edits\gamemodes\crp.pwn(14874) : error 010: invalid function or declaration
C:\Documents and Settings\Yarik\Desktop\CD-Disabler 1.2\one of the best edits\gamemodes\crp.pwn(14877) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
But if i am deleting the command from the mode every thing is fine
Reply


Messages In This Thread
Problem | Command - by [Sk]Noob - 21.07.2009, 19:07
Re: Problem | Command - by Jefff - 21.07.2009, 19:09
Re: Problem | Command - by Pawno_Master - 21.07.2009, 19:10
Re: Problem | Command - by [Sk]Noob - 21.07.2009, 19:24
Re: Problem | Command - by Pawno_Master - 21.07.2009, 19:27
Re: Problem | Command - by MadeMan - 21.07.2009, 19:42
Re: Problem | Command - by [Sk]Noob - 21.07.2009, 19:43
Re: Problem | Command - by [Sk]Noob - 21.07.2009, 21:59

Forum Jump:


Users browsing this thread: 1 Guest(s)