what did i do wrong?
#1

C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8563) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8565) : warning 213: tag mismatch
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8577) : warning 213: tag mismatch
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8587) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(28657) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
the only 2 things i edited was

new hqgate;

if(strcmp(cmdtext,"/opengate2", true) == 0)
{
if (gTeam[playerid] == pMember)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 1540.3433,-1618.5446,13.5469, 1.500000);
return 1;
}
}
}

if(strcmp(cmdtext,"/closegate", true) == 0)
{
if (gTeam[playerid] == pMember)
{
if(PlayerToPoint(15.0, playerid,283.2922,-1543.4369,24.7436))
{
MoveObject(hqgate, 1540.3433,-1635.2469,13.5469, 1.500000);
return 1;
}
}
}


hqgate = CreateObject(980,1540.3433,-1635.2469,13.5469, 0.0000, 0.0000, 0.0000);//closed

before that there was no errors please if any 1 knows how to fix please tell here how to fix or PM me
Reply
#2

now tried different all same just changed

if(strcmp(cmd, "/openpd2", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
MoveStreamObject(hqgate,1539.7997,-1634.8459,13.5469,2.00);
SendClientMessage(playerid,COLOR_GREEN, "You are opening the PD 2 gate.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not a PD/FBI Member!");
}
return 1;
}

if(strcmp(cmd, "/closepd2", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
MoveStreamObject(hqgate,1540.8821,-1618.3671,13.5546,2.00);
SendClientMessage(playerid,COLOR_GREEN, "You are closing the PD 2 gate.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not a PD/FBI Member!");
}
return 1;
}


now these 3 warnings come up
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8563) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8577) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(28661) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
Reply
#3

Quote:
Originally Posted by johnnie_knoxville
now these 3 warnings come up
Код:
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8563) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8577) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(28661) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
The third one just emans near the top of your script add this line
pawn Код:
forward GetPointDistanceToPointExMorph
The other two are just loose indentations whihc simple means it should look like this instead.

pawn Код:
if(strcmp(cmd, "/openpd2", true) == 0)
  {
   if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
  {
     MoveStreamObject(hqgate,1539.7997,-1634.8459,13.5469,2.00);
   SendClientMessage(playerid,COLOR_GREEN, "You are opening the PD 2 gate.");
     }
     else
     {
      SendClientMessage(playerid, COLOR_RED, "You are not a PD/FBI Member!");
     }
return 1;
}

if(strcmp(cmd, "/closepd2", true) == 0)
  {
   if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2 ||              PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
  {
     MoveStreamObject(hqgate,1540.8821,-1618.3671,13.5546,2.00);
   SendClientMessage(playerid,COLOR_GREEN, "You are closing the PD 2 gate.");
     }
     else
     {
      SendClientMessage(playerid, COLOR_RED, "You are not a PD/FBI Member!");
     }
return 1;
}
Should work :S
Reply
#4

can you help me i messed up the gates lol it stands like this :
I
I
I
I
I
i want it like this
---------------- what to change which rotation? x/y/z ?



C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(84) : error 025: function heading differs from prototype
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8564) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8569) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8575) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8583) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8589) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(8592) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\gamemodes\WC-RP.pwn(28662) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)