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.
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;
}
stock IsPlayerOnline(name[])
{
new pName[MAX_PLAYER_NAME];
for(new i=0; i<MAX_PLAYERS; i++)
{
GetpName(i, pName, sizeof(pName));
if(strcmp(name,pName,true)==0)
{
return 1;
}
}
return 0;
}
stock IsPlayerOnline( playerid ) { for( new i = 0; i < MAX_PLAYERS; i++ ) { new nome[ MAX_PLAYER_NAME ]; GetPlayerName( i, nome, sizeof( nome ) ); } return nome; }
Tenta:
pawn Код:
|
C:\Documents and Settings\Administrador\Meus documentos\Downloads\Samp\LEORPG\gamemodes\LeORPG.pwn(2530) : error 017: undefined symbol "GetpName" C:\Documents and Settings\Administrador\Meus documentos\Downloads\Samp\LEORPG\gamemodes\LeORPG.pwn(2530) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
C:\Documents and Settings\Administrador\Meus documentos\Downloads\Samp\LEORPG\gamemodes\LeORPG.pwn(2530) : error 017: undefined symbol "GetpName" C:\Documents and Settings\Administrador\Meus documentos\Downloads\Samp\LEORPG\gamemodes\LeORPG.pwn(2530) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
stock IsPlayerOnline(name[])
{
new pName[MAX_PLAYER_NAME];
for(new i=0; i<MAX_PLAYERS; i++)
{
GetPlayerName(i, pName, sizeof(pName));
if(strcmp(name,pName,true)==0)
{
return 1;
}
}
return 0;
}
stock IsPlayerOnline(name[])
{
new PlayerName2[MAX_PLAYER_NAME];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i, PlayerName2, sizeof(PlayerName2));
if(strcmp(name,PlayerName2,true)==0)
{
return true;
}
}
}
return 0;
}
Sorry, tenta:
pawn Код:
Exato '-' |