30.07.2013, 09:08
pawn Код:
C:\Users\gtfytgfy\Desktop\LSS-RP\gamemodes\LSS-RP.pwn(40948) : warning 219: local variable "string" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
pawn Код:
if(strcmp(cmd, "/paycheck", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new string[128];
format(string, sizeof(string), "* You have played for %d minutes in the past hour.", PlayerInfo[playerid][pMinutes]);
if(PlayerInfo[playerid][pMinutes] < 40) SendClientMessage(playerid, COLOR_LIGHTRED, string);
else SendClientMessage(playerid, COLOR_LIME, string);
format(string, sizeof(string), "* You need to play for at least 40 minutes every hour to recieve a paycheck.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
return 1;
}
return 1;
}

