10.01.2012, 11:49
Hello!
This is my code. Its in OnGameModeInit.
This is my other code.
These are the warnings.
Can somebody solve this?
pawn Код:
new string[64],tmphour, tmpminute, tmpsecond, ghour, gameHour, gameMinute, gameSecond, shifthour;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
ghour = tmphour; //warning
gettime(gameHour, gameMinute, gameSecond);
gameHour = FixHour(gameHour);
SetWorldTime(tmphour);
This is my other code.
pawn Код:
FixHour(hour)
{
new timeshift, shifthour;
hour = timeshift+hour;
if(hour < 0)
{
hour = hour+24;
}
else if(hour > 23)
{
hour = hour-24;
}
shifthour = hour; //warning
return 1;
}
Код:
C:\Users\tuumajaam\Desktop\DreamRP Gaming + UCP [MySQL]\Server 1 [MySQL] - RP\gamemodes\mysql.pwn(50) : warning 204: symbol is assigned a value that is never used: "ghour" C:\Users\tuumajaam\Desktop\DreamRP Gaming + UCP [MySQL]\Server 1 [MySQL] - RP\gamemodes\mysql.pwn(292) : warning 204: symbol is assigned a value that is never used: "shifthour"