Hello,
i'm getting a warning "local variable "OnDutyPD" shadows a variable at a preceding level".
Global:
Function:
Thanks a Lot.
i'm getting a warning "local variable "OnDutyPD" shadows a variable at a preceding level".
Global:
PHP Code:
new OnDutyPD[MAX_PLAYERS] = 1;
PHP Code:
SendMessageToCopsBackup(OnDutyPD,Float:xback, Float:yback, Float:zback,COLOR,msg);
PHP Code:
stock SendMessageToCopsBackup(OnDutyPD,Float:xback, Float:yback, Float:zback,color,text[]) // This line i'm getting a warning
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(playerDB[i][job]==1)
{
if(OnDutyPD[i]==1)
{
SendClientMessage(i,color,text);
SetPlayerCheckpoint(i, xback, yback, zback, 3.0);
return 1;
}
}
}
}
}