2 Errors in compiler, but I cant seem to fix it?
#3

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
pawn Код:
#pragma unused ret_memcpy
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:
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;
}
Although I'd recommend looking up on sscanf - which would make this much easier.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)