ERROR: I NEED HELP?
#1

Код:
D:\Server\Serbia-crime\gamemodes\gf.pwn(8457) : warning 217: loose indentation
D:\Server\Serbia-crime\gamemodes\gf.pwn(8457) : error 029: invalid expression, assumed zero
D:\Server\Serbia-crime\gamemodes\gf.pwn(8457 -- 8458) : error 029: invalid expression, assumed zero
D:\Server\Serbia-crime\gamemodes\gf.pwn(8458) : warning 217: loose indentation
D:\Server\Serbia-crime\gamemodes\gf.pwn(8459) : error 036: empty statement
D:\Server\Serbia-crime\gamemodes\gf.pwn(8460) : warning 217: loose indentation
D:\Server\Serbia-crime\gamemodes\gf.pwn(8464) : warning 217: loose indentation
D:\Server\Serbia-crime\gamemodes\gf.pwn(8464) : error 029: invalid expression, assumed zero
D:\Server\Serbia-crime\gamemodes\gf.pwn(8468) : error 036: empty statement
D:\Server\Serbia-crime\gamemodes\gf.pwn(8473) : error 029: invalid expression, assumed zero
D:\Server\Serbia-crime\gamemodes\gf.pwn(8476) : warning 217: loose indentation
D:\Server\Serbia-crime\gamemodes\gf.pwn(26277) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
I GET THIS MESSAGE WHEN I COMPILE MY SCRIPT

THIS IS THE LINES from 8457 to 8474

Код:
 if (strcmp(cmdtext, "/vratao", true)==0)
  {
  if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8);
 {
     MoveObject(kapijalcn,1301.665,-2056.976,65.734,8.0);
     SendClientMessage(playerid, COLOR_GREEN, "OTVORILI STE KAPIJU.");
   }
   else SendClientMessage(playerid, COLOR_GREEN, "NISTE CLAN LCN BANDE.");
  }
  if (strcmp(cmdtext, "/vratac", true)==0)
  {
   if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8);
   {
           MoveObject(kapijalcn,1298.355,-2056.840,60.140,8.0);
 				   SendClientMessage(playerid, COLOR_GREEN, "ZATVORILI STE KAPIJU.");
   }
   else SendClientMessage(playerid, COLOR_GREEN, "NISTE CLAN LCN BANDE.");
  }
How to fix this, anyone help? thx
Reply
#2

pawn Код:
if (strcmp(cmdtext, "/vratao", true)==0)
{
    if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8)
    {
        MoveObject(kapijalcn,1301.665,-2056.976,65.734,8.0);
        SendClientMessage(playerid, COLOR_GREEN, "OTVORILI STE KAPIJU.");
    }
    else SendClientMessage(playerid, COLOR_GREEN, "NISTE CLAN LCN BANDE.")
}

if (strcmp(cmdtext, "/vratac", true)==0)
{
    if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8)
    {
        MoveObject(kapijalcn,1298.355,-2056.840,60.140,8.0);
        SendClientMessage(playerid, COLOR_GREEN, "ZATVORILI STE KAPIJU.");
    }
    else SendClientMessage(playerid, COLOR_GREEN, "NISTE CLAN LCN BANDE.");
}
You really need to indent properly. Saves time and trouble in the long run. The warnings were loose indentation fixed by...well indenting, and the errors were because of the semicolons at the end of your if statements. And the last warning is because that callback has been removed in 0.3.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)