Help Me Warning 204
#1

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.

Reply
#2

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

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

Greekz
Reply
#3

Thanks You ..
I've deleted the line account

Thanks,, i give you rep
Reply
#4

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.
Reply
#5

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
Reply
#6

#pragma unused account
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)