Help in removing warnings rep++ - 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 in removing warnings rep++ (
/showthread.php?tid=333029)
Help in removing warnings rep++ -
iOmar - 10.04.2012
=======> What are These Warnings?? I only Add This :
pawn Код:
new pname[MAX_PLAYER_NAME];
new BurridgeScore[100];
pawn Код:
D:\Game\SA-MP Files\UnderWars\filterscripts\ladmin2.pwn(1527) : warning 219: local variable "pname" shadows a variable at a preceding level
D:\Game\SA-MP Files\UnderWars\filterscripts\ladmin2.pwn(1595) : warning 219: local variable "pname" shadows a variable at a preceding level
D:\Game\SA-MP Files\UnderWars\filterscripts\ladmin2.pwn(4039) : warning 219: local variable "pname" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
Re: Help in removing warnings rep++ -
ViniBorn - 10.04.2012
This variable was already declared. Change the name ...
Re: Help in removing warnings rep++ -
Tee - 10.04.2012
Is that in a funtion, callback or command?
Re: Help in removing warnings rep++ -
Jonny5 - 10.04.2012
change the new pname[MAX_PLAYER_NAME];
to something like new p_name[MAX_PLAYER_NAME];
it must be already in use in your code somewhere else!
Re: Help in removing warnings rep++ -
iOmar - 10.04.2012
Ok thnx.....
Re: Help in removing warnings rep++ -
iOmar - 10.04.2012
I have 1 PROBLEM.. How to save Scores?? I tried soo many time but i can't. Can anyone help me??
Re: Help in removing warnings rep++ -
[ABK]Antonio - 10.04.2012
Inside of your player info enum add Score
Then when they gain score
pawn Код:
PlayerInfo[killerid][Score]++; //or whatever you want
Then just save that instead
Re: Help in removing warnings rep++ -
iOmar - 10.04.2012
you mean Don't need to compile?? Or what is meaning of "just save"?
Re: Help in removing warnings rep++ -
Shabi RoxX - 10.04.2012
Oh man offcourse compiling is needed