SA-MP Forums Archive
Help Me Warning 204 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Me Warning 204 (/showthread.php?tid=566469)



Help Me Warning 204 - wanshot11 - 06.03.2015

Script :
Quote:

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 :

Quote:

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


1 Warning.




AW: Help Me Warning 204 - Kaliber - 06.03.2015

Quote:
Originally Posted by wanshot11
Посмотреть сообщение
Eror :ror :
Nah, is just a Warning

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

Greekz


Re: Help Me Warning 204 - wanshot11 - 06.03.2015

Thanks You ..
I've deleted the line account

Thanks,, i give you rep


Re: Help Me Warning 204 - CalvinC - 06.03.2015

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.


AW: Re: Help Me Warning 204 - Kaliber - 06.03.2015

Quote:
Originally Posted by CalvinC
Посмотреть сообщение
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


Re : Help Me Warning 204 - Golimad - 06.03.2015

#pragma unused account