21.11.2010, 16:16
(
Последний раз редактировалось Larsey123IsMe; 21.11.2010 в 16:27.
)
ok, i have edited the script a bit, but it still dont work and i got an ERROR now >.<
Nothing happends when i enter the area -.-
ERROR:
Nothing happends when i enter the area -.-
pawn Код:
#include <a_samp>
#define FILTERSCRIPT
forward CheckPInArea(playerid);
public CheckPInArea(playerid)
{
if(IsPlayerInArea(playerid, 917.74, 2043.3, 997.12, 2183) && !IsPlayerAdmin(playerid)){ //X, Y, Z
//Get & SetPlayerWanted
SetPlayerWantedLevel(playerid, (GetPlayerWantedLevel(playerid) + 10));
new wantedlevel;
wantedlevel = GetPlayerWantedLevel(playerid);
new tmp[64];
//GetPlayerName
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
//TextToShowForAll
format(tmp, sizeof(tmp), "(TRASPASSING ARMY) %s, traspassing ARMY.", wantedlevel);
SendClientMessageToAll(playerid, 0xFF0000FF, tmp);
//TextToShowForPlayer
format(tmp, sizeof(tmp), "(TRASPASSING ARMY) Your wanted level is now: %i", wantedlevel);
SendClientMessage(playerid, 0xFF0000FF, tmp);
}
return 1;
}
stock IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
{
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid, pX, pY, pZ);
if(pX >= MinX && pX <= MaxX && pY >= MinY && pY <= MaxY)
return true;
else
return false;
}
pawn Код:
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\WantedInArea.pwn(20) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
