SA-MP Forums Archive
Fixed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Fixed (/showthread.php?tid=73066)



Fixed - [KML]Dabug - 12.04.2009

Ah, invalid function or declartion again!

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/nameoff", cmdtext, true, 10) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
return 1;
}
return 1;
}
return 0;
}

C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(110) : warning 217: loose indentation
C:\Documents and Settings\Adminisondre\Desktop\coding\gamemodes\Xtr eme.pwn(112) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: Help /nameoff HELP!!!!!!!! MISSING CURLY BRACKETS AGAIN - MenaceX^ - 12.04.2009

Use pawn tags.
Here the problem.
pawn Код:
return 1;
}
   return 1;
  }



Re: Help /nameoff HELP!!!!!!!! MISSING CURLY BRACKETS AGAIN - [KML]Dabug - 12.04.2009

Quote:
Originally Posted by MenaceX^
Use pawn tags.
Here the problem.
pawn Код:
return 1;
}
   return 1;
 }
Lol im that nooby that i dont know how to fix that? how?


Re: Help /nameoff HELP!!!!!!!! MISSING CURLY BRACKETS AGAIN - Klutty - 12.04.2009

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/nameoff", cmdtext, true, 10) == 0)
  {
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    ShowPlayerNameTagForPlayer(playerid, i, false);
  }
  GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
  return 1;
}
  return 0;
}



Re: Help /nameoff HELP!!!!!!!! MISSING CURLY BRACKETS AGAIN - [KML]Dabug - 12.04.2009

Thx


Re: Fixed - Klutty - 12.04.2009

No problem, mate.


Re: Fixed - MenaceX^ - 12.04.2009

It's exactly what I said...


Re: Fixed - [KML]Dabug - 12.04.2009

Quote:
Originally Posted by MenaceX^
It's exactly what I said...
I know Thx to you too
But im a noob to sa-mp