SA-MP Forums Archive
will you help me please:'( - 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: will you help me please:'( (/showthread.php?tid=139572)



will you help me please:'( - justinkomnuga - 05.04.2010

how do you make 1 Command that opens gates 7


Re: will you help me please:'( - justinkomnuga - 05.04.2010

how ?


Re: will you help me please:'( - biltong - 05.04.2010

STOP BUMPING, ONE TOPIC, SEARCH!!!!


Re: will you help me please:'( - justinkomnuga - 05.04.2010

Quote:
Originally Posted by MaykoX[PSYCHO
code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/cmds", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xAA3333AA,"Welcome: /rules :: Admins: /Rcon Login [password]");
return 1;
}

if (strcmp("/rules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xAA3333AA,"No Cheating and No Team Kill else ban! The aliens have escaped trying to kill them before they kill your!!");
return 1;
}
(
if (! strcmp ("/sluiten", cmdtext)))
(
if (IsPlayerInRangeOfPoint (playerid, 7.0, 2353,693359375, -650,77709960938, +127,85127258301))
(
MoveObject (movingdoor1, 2354,3403320313, -650,77142333984, 127,85127258301, 1);
SendClientMessage (playerid, 0xEF994300, "De poort is gesloten.");
)
return 1;
)

if (! strcmp ("/open", cmdtext))
(
if (IsPlayerInRangeOfPoint (playerid, 7.0, 2353,693359375, -650,77709960938, +127.85127258301))
(
MoveObject (movingdoor1 , 2353,693359375, -650,77709960938, 127,85127258301, 1);
SendClientMessage (playerid, 0xEF994300, "De poort heeft geopend.");
)
return 0;
}
eror:
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(49) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(49) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(49) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(16 : warning 217: loose indentation
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(168 -- 169) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(169) : warning 217: loose indentation
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(169) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(169) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(169) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: will you help me please:'( - [MWR]Blood - 05.04.2010

pawn Код:
{
  if (strcmp("/cmds", cmdtext, true, 10) == 0)
  {
   SendClientMessage(playerid,0xAA3333AA,"Welcome: /rules :: Admins: /Rcon Login [password]");
   return 1;
  }

  if (strcmp("/rules", cmdtext, true, 10) == 0)
  {
   SendClientMessage(playerid,0xAA3333AA,"No Cheating and No Team Kill else ban! The aliens have escaped trying to kill them before they kill your!!");
   return 1;
  }

  if (! strcmp ("/sluiten", cmdtext)))
  {
  if (IsPlayerInRangeOfPoint (playerid, 7.0, 2353,693359375, -650,77709960938, +127,85127258301))
   {
   MoveObject (movingdoor1, 2354,3403320313, -650,77142333984, 127,85127258301, 1);
   SendClientMessage (playerid, 0xEF994300, "De poort is gesloten.");
   }
    return 1;
  }

  if (! strcmp ("/open", cmdtext))
  {
  if (IsPlayerInRangeOfPoint (playerid, 7.0, 2353,693359375, -650,77709960938, +127.85127258301))
  {
  MoveObject (movingdoor1 , 2353,693359375, -650,77709960938, 127,85127258301, 1);
  SendClientMessage (playerid, 0xEF994300, "De poort heeft geopend.");
  }
  return 0;

}
You putted ( ) instead { } ...


Re: will you help me please:'( - justinkomnuga - 05.04.2010

Quote:
Originally Posted by ikarus[PSYCHO
]
pawn Код:
{
  if (strcmp("/cmds", cmdtext, true, 10) == 0)
  {
   SendClientMessage(playerid,0xAA3333AA,"Welcome: /rules :: Admins: /Rcon Login [password]");
   return 1;
  }

  if (strcmp("/rules", cmdtext, true, 10) == 0)
  {
   SendClientMessage(playerid,0xAA3333AA,"No Cheating and No Team Kill else ban! The aliens have escaped trying to kill them before they kill your!!");
   return 1;
  }

  if (! strcmp ("/sluiten", cmdtext)))
  {
  if (IsPlayerInRangeOfPoint (playerid, 7.0, 2353,693359375, -650,77709960938, +127,85127258301))
   {
   MoveObject (movingdoor1, 2354,3403320313, -650,77142333984, 127,85127258301, 1);
   SendClientMessage (playerid, 0xEF994300, "De poort is gesloten.");
   }
    return 1;
  }

  if (! strcmp ("/open", cmdtext))
  {
  if (IsPlayerInRangeOfPoint (playerid, 7.0, 2353,693359375, -650,77709960938, +127.85127258301))
  {
  MoveObject (movingdoor1 , 2353,693359375, -650,77709960938, 127,85127258301, 1);
  SendClientMessage (playerid, 0xEF994300, "De poort heeft geopend.");
  }
  return 0;

}
You putted ( ) instead { } ...
then a get this
eror:
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(49) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(49) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(49) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(164) : warning 217: loose indentation
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(170) : warning 217: loose indentation
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(170) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(171) : warning 217: loose indentation
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : warning 215: expression has no effect
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : warning 215: expression has no effect
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.


Re: will you help me please:'( - aircombat - 05.04.2010

dude stop bumbing before 12 hours!!! admin should really ban u!!!!


Re: will you help me please:'( - biltong - 06.04.2010

Quote:
Originally Posted by justinkomnuga
Quote:
Originally Posted by ikarus[PSYCHO
]
pawn Код:
{
  if (strcmp("/cmds", cmdtext, true, 10) == 0)
  {
   SendClientMessage(playerid,0xAA3333AA,"Welcome: /rules :: Admins: /Rcon Login [password]");
   return 1;
  }

  if (strcmp("/rules", cmdtext, true, 10) == 0)
  {
   SendClientMessage(playerid,0xAA3333AA,"No Cheating and No Team Kill else ban! The aliens have escaped trying to kill them before they kill your!!");
   return 1;
  }

  if (! strcmp ("/sluiten", cmdtext)))
  {
  if (IsPlayerInRangeOfPoint (playerid, 7.0, 2353,693359375, -650,77709960938, +127,85127258301))
   {
   MoveObject (movingdoor1, 2354,3403320313, -650,77142333984, 127,85127258301, 1);
   SendClientMessage (playerid, 0xEF994300, "De poort is gesloten.");
   }
    return 1;
  }

  if (! strcmp ("/open", cmdtext))
  {
  if (IsPlayerInRangeOfPoint (playerid, 7.0, 2353,693359375, -650,77709960938, +127.85127258301))
  {
  MoveObject (movingdoor1 , 2353,693359375, -650,77709960938, 127,85127258301, 1);
  SendClientMessage (playerid, 0xEF994300, "De poort heeft geopend.");
  }
  return 0;

}
You putted ( ) instead { } ...
then a get this
eror:
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(49) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(49) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(49) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(164) : warning 217: loose indentation
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(170) : warning 217: loose indentation
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(170) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(171) : warning 217: loose indentation
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : warning 215: expression has no effect
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : warning 215: expression has no effect
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(172) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.
I don't get what you don't understand. The compiler is telling you IN WORDS what is wrong. You can't rely on all of us all the time, fix your own damned script.