PDA

View Full Version : Help Me Warning 204


wanshot11
06/03/2015, 12:02 PM
Script :
if(BankRobberyTime) BankRobberyTime --;
foreach(Player, i)
{
if(PlayerInfo[i][pLevel] > 0)
{
if(MoneyMessage[i]==1)
{
if( PlayerInfo[i][pJailed] < 1 && !IsACop(i))
{
format(string,sizeof(string),"Anda gagal untuk membayar utang anda $%d - sekarang anda menjadi buronan polisi.",GetPlayerCash(i));
SendClientMessageEx(i, COLOR_LIGHTRED, string);
if(PlayerInfo[i][pWantedLevel] < 6) PlayerInfo[i][pWantedLevel] += 1;
PlayerInfo[i][pCrimes] += 1;
SetPlayerWantedLevel(i, PlayerInfo[i][pWantedLevel]);
}
}
account = PlayerInfo[i][pAccount];
if(PlayerInfo[i][pRenting] != INVALID_HOUSE_ID)
{
if(HouseInfo[PlayerInfo[i][pRenting]][hRentFee] > PlayerInfo[i][pAccount])
{
PlayerInfo[i][pRenting] = INVALID_HOUSE_ID;
SendClientMessageEx(i, COLOR_WHITE, "Anda telah diusir.");
}
else {
HouseInfo[PlayerInfo[i][pRenting]][hSafeMoney] += HouseInfo[PlayerInfo[i][pRenting]][hRentFee];
PlayerInfo[i][pAccount] -= HouseInfo[PlayerInfo[i][pRenting]][hRentFee];
}
}


Eror :

D:Roleplay.pwn(28249) : warning 204: symbol is assigned a value that is never used: "account"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.

Kaliber
06/03/2015, 12:04 PM
Eror :ror :
Nah, is just a Warning :D

You can delete this line...and the line new account, too ;)

Greekz :cool:

wanshot11
06/03/2015, 12:16 PM
Thanks You ..
I've deleted the line account

Thanks,, i give you rep :)

CalvinC
06/03/2015, 12:19 PM
You don't use "account" as anything, so you can use it or remove it.
The warning doesn't do anything, but if you just want to hide it and use it later you can create it as a stock.

Kaliber
06/03/2015, 12:20 PM
but if you just want to hide it and use it later you can create it as a stock.
You can declare only global vars as stock, not locals ;)

Golimad
06/03/2015, 12:20 PM
#pragma unused account