Symbol not being given a value
#1

pawn Код:
new Rank;
Rank = dini_Int("DMVInfo.ini", NameString);
Rank = gDMVPlayerInfo[playerid][PLAYER_IN_DMV]; // 119
Код:
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(119) : warning 204: symbol is assigned a value that is never used: "Rank"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
The reason I did this is because I'd rather not use a switch for this.
Reply
#2

12 hr bump
Reply
#3

cuz you haven't used the "Rank" in anywhere else
Reply
#4

But would this code make whatever dini_Int returns equal to gDMVPlayerInfp[playerid][PLAYER_IN_DMV]?
Reply
#5

12 hr bump
Reply
#6

Quote:
Originally Posted by ilikepie2221
But would this code make whatever dini_Int returns equal to gDMVPlayerInfp[playerid][PLAYER_IN_DMV]?
No you use the wrong order, you need to assing the value of 'Rank' to 'gDMVPlayerInfo[playerid][PLAYER_IN_DMV]' not vice versa.
pawn Код:
gDMVPlayerInfo[playerid][PLAYER_IN_DMV] = Rank;
Now 'Rank' is used, so the warning will go away too!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)