19.01.2014, 10:42
pawn Код:
C:\Users\hacker\Desktop\lscnr script\filterscripts\business.pwn(376) : warning 204: symbol is assigned a value that is never used: "lockdone"
C:\Users\hacker\Desktop\lscnr script\filterscripts\business.pwn(375) : warning 204: symbol is assigned a value that is never used: "done"
C:\Users\hacker\Desktop\lscnr script\filterscripts\business.pwn(351) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
here is where i get the error
pawn Код:
CMD:lockb(playerid, params[])
{
new string[128], idx, done, lockdone;
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pBiz])
{
if(IsPlayerInRangeOfPoint(playerid, 2, BizInfo[PlayerInfo[playerid][pBiz]][bX], BizInfo[PlayerInfo[playerid][pBiz]][bY], BizInfo[PlayerInfo[playerid][pBiz]][bZ]))
{
if(!BizInfo[PlayerInfo[playerid][pBiz]][bStatus])
{
BizInfo[PlayerInfo[playerid][pBiz]][bStatus] = 1;
format(string, sizeof(string), "[Business ID: %d]\nBusiness Type: %s\nBusiness Owner: %s\nStatus: %s", PlayerInfo[playerid][pBiz], RBT(PlayerInfo[playerid][pBiz]), BizInfo[PlayerInfo[playerid][pBiz]][bOwner], RBS(PlayerInfo[playerid][pBiz]));
UpdateDynamic3DTextLabelText(BizInfo[PlayerInfo[playerid][pBiz]][bText], COLOR_WHITE, string);
format(string, sizeof(string), "* %s takes out their business keys and unlocks it.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
GameTextForPlayer(playerid, "~g~Business Unlocked", 3500, 3);
}
else if(BizInfo[PlayerInfo[playerid][pBiz]][bStatus])
{
BizInfo[PlayerInfo[playerid][pBiz]][bStatus] = 0;
format(string, sizeof(string), "[Business ID: %d]\nBusiness Type: %s\nBusiness Owner: %s\nStatus: %s", PlayerInfo[playerid][pBiz], RBT(PlayerInfo[playerid][pBiz]), BizInfo[PlayerInfo[playerid][pBiz]][bOwner], RBS(PlayerInfo[playerid][pBiz]));
UpdateDynamic3DTextLabelText(BizInfo[PlayerInfo[playerid][pBiz]][bText], COLOR_WHITE, string);
format(string, sizeof(string), "* %s takes out their business keys and locks it.", RPN(playerid));
SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
GameTextForPlayer(playerid, "~r~Business Locked", 3500, 3);
}
done = 1;
lockdone = 1;
}
}
return 1;
}