SA-MP Forums Archive
Need help - 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: Need help (/showthread.php?tid=406160)



Need help - sscarface - 09.01.2013

[QUOTE]C:\Users\Downloads\Compressed\\gamemodes\cnr.pwn(2 1191) : warning 203: symbol is never used: "difference"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.

Quote:

forward AntiCash();
public AntiCash()
{
foreach(Player, i)
{
if(GetPlayerMoney(i) != PlayerCash[i])
{
new difference;
ResetPlayerMoney(i);
GivePlayerMoney(i,PlayerCash[i]);
return 1;
}
}
return 1;
}




Re: Need help +rep - JavoDiaz - 09.01.2013

pawn Код:
forward AntiCash();
public AntiCash()
{
foreach(Player, i)
{
if(GetPlayerMoney(i) != PlayerCash[i])
{
ResetPlayerMoney(i);
GivePlayerMoney(i,PlayerCash[i]);
return 1;
}
}
return 1;
}
You are not using the variable difference.


Re: Need help +rep - sscarface - 09.01.2013

Код:
21191 : new difference;



Re: Need help +rep - u3ber - 09.01.2013

self-explanatory really...

also, choose a better topic title!


Re: Need help +rep - =WoR=G4M3Ov3r - 09.01.2013

Just delete the line ~

PHP код:
new difference



Re: Need help +rep - sscarface - 09.01.2013

Quote:
Originally Posted by JavoDiaz
Посмотреть сообщение
pawn Код:
forward AntiCash();
public AntiCash()
{
foreach(Player, i)
{
if(GetPlayerMoney(i) != PlayerCash[i])
{
ResetPlayerMoney(i);
GivePlayerMoney(i,PlayerCash[i]);
return 1;
}
}
return 1;
}
You are not using the variable difference.
Thanx. Rep