Bracket problem
#1

Hey, what's up guys. i need a some help here. this is my code and i know the brackets are wrong... would somebody be kind enough to fix them? Thanks in-advance.

The error:
pawn Код:
C:\DOCUME~1\SKELLY~1\Desktop\GTASER~1\GAMEMO~1\Untitled.pwn(141) : warning 209: function "JB_OnPlayerCommandText" should return a value
C:\DOCUME~1\SKELLY~1\Desktop\GTASER~1\GAMEMO~1\Untitled.pwn(141) : error 010: invalid function or declaration
C:\DOCUME~1\SKELLY~1\Desktop\GTASER~1\GAMEMO~1\Untitled.pwn(143) : error 021: symbol already defined: "JB_SetPlayerHealth"
C:\DOCUME~1\SKELLY~1\Desktop\GTASER~1\GAMEMO~1\Untitled.pwn(144) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
if(!strcmp(cmdtext, "/help", true))
{
  TogglePlayerControllable(playerid,0);
  ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "What do you need help, with?", "Commands\nLocations\nJobs", "OK", "Cancel");
  TogglePlayerControllable(playerid,1);
  return 1;
}
if(!strcmp(cmdtext, "/suicide", true))
{
  SetPlayerHealth(playerid, 0);
  return 1;
}
NOTE: DON'T MIND errors on lines 141 & 143
Reply


Messages In This Thread
Bracket problem - by keujh - 02.04.2010, 00:48
Re: Bracket problem - by keujh - 02.04.2010, 01:03
Re: Bracket problem - by keujh - 02.04.2010, 01:11
Re: Bracket problem - by keujh - 02.04.2010, 01:29

Forum Jump:


Users browsing this thread: 1 Guest(s)