C:\Users\Jimmi\Desktop\93.119.25.182-7777\gamemodes\RunStrike.pwn(23746) : warning 209: function "cmd_checkweapons" shou
#4

Quote:
Originally Posted by SoFahim
Посмотреть сообщение
PHP код:
CMD:checkweapons(playerid,params[])
{
    new 
temp[100], idxtargetidstring[256];
            if(
IsPlayerConnected(playerid))
            {
                if (
PlayerInfo[playerid][pAdmin] < 1)
                {
                    
SendClientMessage(playeridCOLOR_ERROR"You are not authorized");
                    return 
1;
                }
                
temp strtok(params,idx);
                if (!
strlen(temp))
                {
                    
SendClientMessage(playeridCOLOR_WHITE"Synthax: /checkweapons <playerid/partOfName>");
                    return 
1;
                }
                
targetid ReturnUser(temp);
                if (
targetid == INVALID_PLAYER_ID)
                {
                    
SendClientMessage(playeridCOLOR_ERROR"That player is offline");
                    return 
1;
                }
                new 
weaponsmodelammunition;
                
                   new 
playername[MAX_PLAYER_NAME];
                  
GetPlayerName(targetidplayernameMAX_PLAYER_NAME);
                
format(stringsizeof(string), "%s has the following weapons:"playername);
                for (new 
i=0i<9i++)
                {
                    
GetPlayerWeaponData(targetidiweaponsmodelammunition);
                    if(
weaponsmodel != 0)
                    {
                        
format(stringsizeof(string), "%d: %d (%d)"iweaponsmodelammunition);
                        
SendClientMessage(playeridCOLOR_ADMIN_INFOstring);
                    }
                }
            }
 return 
1;
        } 
there just need a return 1 ;

REP me if it helpful
Rofl thanks for the repeat
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)