IsPlayerInArea
#7

this is what ive got

pawn Код:
stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y)
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    if(1931.533813 <= max_x && 1323.255126 >= min_x && 2036.987426 <= max_y && 1364.370117 >= min_y) return 1;
    return 0;
}

public InAreaChecker()
{
  for(new i; i<MAX_PLAYERS; i++)
  {
    if(IsPlayerInArea(i, 1931.533813, 1323.255126, 2036.987426, 1364.370117))
    {
      SetPlayerHealth(i, 9999999);
      TextDrawShowForPlayer(Textdraw30);
    }
    else
    {
      TextDrawHideForPlayer(Textdraw30);
      SetPlayerHealth(i, 100);
  }
}
and this is what comes out

pawn Код:
C:\DOCUME~1\Jake\Desktop\SAMP-S~1\GAMEMO~1\DMA.pwn(1021) : error 025: function heading differs from prototype
C:\DOCUME~1\Jake\Desktop\SAMP-S~1\GAMEMO~1\DMA.pwn(1033) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Jake\Desktop\SAMP-S~1\GAMEMO~1\DMA.pwn(1033) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Jake\Desktop\SAMP-S~1\GAMEMO~1\DMA.pwn(1033) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Jake\Desktop\SAMP-S~1\GAMEMO~1\DMA.pwn(1033) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Jake\Desktop\SAMP-S~1\GAMEMO~1\DMA.pwn(1033) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Jake\Desktop\SAMP-S~1\GAMEMO~1\DMA.pwn(1036) : warning 213: tag mismatch
C:\DOCUME~1\Jake\Desktop\SAMP-S~1\GAMEMO~1\DMA.pwn(1036) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Jake\Desktop\SAMP-S~1\GAMEMO~1\DMA.pwn(1040) : warning 213: tag mismatch
C:\DOCUME~1\Jake\Desktop\SAMP-S~1\GAMEMO~1\DMA.pwn(1040) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Jake\Desktop\SAMP-S~1\GAMEMO~1\DMA.pwn(1045) : error 030: compound statement not closed at the end of file (started at line 1031)
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Reply


Messages In This Thread
IsPlayerInArea - by V1ceC1ty - 21.07.2009, 06:21
Re: IsPlayerInArea - by arnutisz - 21.07.2009, 07:22
Re: IsPlayerInArea - by V1ceC1ty - 21.07.2009, 07:50
Re: IsPlayerInArea - by Grim_ - 21.07.2009, 08:28
Re: IsPlayerInArea - by V1ceC1ty - 21.07.2009, 08:41
Re: IsPlayerInArea - by Donny_k - 21.07.2009, 09:12
Re: IsPlayerInArea - by V1ceC1ty - 21.07.2009, 09:24
Re: IsPlayerInArea - by MadeMan - 21.07.2009, 10:05
Re: IsPlayerInArea - by V1ceC1ty - 21.07.2009, 10:43
Re: IsPlayerInArea - by MadeMan - 21.07.2009, 11:11

Forum Jump:


Users browsing this thread: 1 Guest(s)