Author Topic: Help, Invalid Function or Declaration  (Read 1829 times)

0 Members and 1 Guest are viewing this topic.

Offline [NYB]Gino

  • Street Thug
  • *
  • Posts: 15
    • View Profile
Help, Invalid Function or Declaration
« on: April 25, 2014, 08:24:30 am »
hi, i do my best but i really dont know how to fix this problem

public StarGameLMS()
{
    if (gLMS[CountLMS] == 0) {MessageAll(BLUE, "LMS has ended because no players."); KillTimer(LMS1); SetTimer("QuitBugLMS",1000,0);}
    else if (gLMS[CountLMS] == 1) {MessageAll(BLUE, "LMS has completed and a winner."); KillTimer(LMS1); SetTimer("InfoPlayerWinLMS",500,0); SetTimer("SendPlayerRewardLMS",1000,0);}
    else if (gLMS[CountLMS] >= 2) {
         for(new i = 0; i <= MAX_PLAYERS; i++) {
             new plr = FindPlayerIDFromString(gPlayers);
                if(!NeedPlayerInArea(plr,gLMS[MinXS],gLMS[MaxXS],gLMS[MinYS],gLMS[MaxYS])) {SetPlayerPos(plr,gLMS[PosXS], gLMS[PosYS], gLMS[PosZS], 0,0); GameTextForPlayerBottom(plr,"~h~re-join!");}
                else GameTextForPlayerBottom(plr,"\x10");
             }
       }
   }
   return 1;
}

that is Invalid Function Or Declaration

Offline mrockxkingbutt

  • Crime Boss
  • ****
  • Posts: 373
  • I AM Best Scripter And You Are Not :P
    • View Profile
Re: Help, Invalid Function or Declaration
« Reply #1 on: April 25, 2014, 12:09:44 pm »
hi, i do my best but i really dont know how to fix this problem

public StarGameLMS()
{
    if (gLMS[CountLMS] == 0) {MessageAll(BLUE, "LMS has ended because no players."); KillTimer(LMS1); SetTimer("QuitBugLMS",1000,0);}
    else if (gLMS[CountLMS] == 1) {MessageAll(BLUE, "LMS has completed and a winner."); KillTimer(LMS1); SetTimer("InfoPlayerWinLMS",500,0); SetTimer("SendPlayerRewardLMS",1000,0);}
    else if (gLMS[CountLMS] >= 2) {
         for(new i = 0; i <= MAX_PLAYERS; i++) {
             new plr = FindPlayerIDFromString(gPlayers);
                if(!NeedPlayerInArea(plr,gLMS[MinXS],gLMS[MaxXS],gLMS[MinYS],gLMS[MaxYS])) {SetPlayerPos(plr,gLMS[PosXS], gLMS[PosYS], gLMS[PosZS], 0,0); GameTextForPlayerBottom(plr,"~h~re-join!");}
                else GameTextForPlayerBottom(plr,"\x10");
             }
       }
   return 1;
}

try this!!
My Servers Showroom!
www.jimxvcmpscripts.createaforum.com/

Quote from:  rohanaj60
i m a great script Editor

Rofl! lmao lol