14.01.2013, 06:27
ret_memcpy is a function in the dutils.inc include. It just simply tells you that it have never been used. To hide this error, simply add this line along with defines
As for your first error, you're trying to use a function that doesn't exist. Here's an example of that function, which you have to add to your script:
Although I'd recommend looking up on sscanf - which would make this much easier.
pawn Код:
#pragma unused ret_memcpy
pawn Код:
GetPlayerID(name[])
{
for( new i = 0; i < MAX_PLAYERS; i ++ ) //or foreach( Player, i )
{
if( IsPlayerConnected( i ))
{
new
pname[ MAX_PLAYER_NAME + 1 ];
GetPlayerName( i, pname, sizeof( pname ));
if( !strcmp( name, pname ))
return i;
}
}
return INVALID_PLAYER_ID;
}