21.11.2010, 14:57
What's wrong? i got 1 ERROR:
ERROR:
pawn Код:
#include <a_samp>
forward CheckPInArea(playerid);
public CheckPInArea(playerid)
{
if(IsPlayerInArea(playerid, 896.5746, 2057.332, 978.5764, 2184.978) && !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], string[44];
GetPlayerName(playerid, name, sizeof(name));
//TextToShow
format(tmp, sizeof(tmp), "(TRASPASSING) %s is traspassing ARMY, his/her 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;
}
ERROR:
pawn Код:
C:\Users\Larsey123\Documents\SAMP Server\My server\filterscripts\WantedInArea.pwn(14) : warning 204: symbol is assigned a value that is never used: "string"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.