18.05.2012, 17:50
Код:
C:\Documents and Settings\Administrador\Meus documentos\Downloads\Samp\LEORPG\gamemodes\LeORPG.pwn(2527) : warning 219: local variable "PlayerName" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 7924 bytes Code size: 1364212 bytes Data size: 5306020 bytes Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion Total requirements: 6694540 bytes 1 Warning.
pawn Код:
stock IsPlayerOnline(name[])
{
new PlayerName[MAX_PLAYER_NAME];
for(new i=0; i<MAX_PLAYERS; i++)
{
GetPlayerName(i, PlayerName, sizeof(PlayerName));
if(strcmp(name,PlayerName,true)==0)
{
return 1;
}
}
return 0;
}