Help in removing warnings rep++
#1

=======> 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.
Reply
#2

This variable was already declared. Change the name ...
Reply
#3

Is that in a funtion, callback or command?
Reply
#4

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

Ok thnx.....
Reply
#6

I have 1 PROBLEM.. How to save Scores?? I tried soo many time but i can't. Can anyone help me??
Reply
#7

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

you mean Don't need to compile?? Or what is meaning of "just save"?
Reply
#9

Oh man offcourse compiling is needed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)