Function is not implemented.
#6

Quote:
Originally Posted by yusei
Посмотреть сообщение
PHP код:
if(!strcmp(cmdtext"/putgun"true))
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerLogged[playerid] == 0)
            {
                
SendClientMessage(playeridLIGHTRED"* You need to login first!");
                return 
1;
            }
            if(
PlayerInfo2[Hospitalized][playerid] > 0)
            {
                
SendClientMessage(playeridLIGHTRED"* Cannot do this right now!");
                return 
1;
            }
            if(
PlayerInfo2[ReduceTime][playerid] > 0)
            {
                
format(stringsizeof(string), "* You need to wait %d seconds to type this command."PlayerInfo2[ReduceTime][playerid]);
                
SendClientMessage(playeridLIGHTREDstring);
            }
            if(
GetPlayerPing(playerid) >= 700)
            {
                
SendClientMessage(playeridGREY"Your ping is too high to do this command.");
                return 
1;
            }
            if(
PlayerInfo2[ReduceTime][playerid] > 0)
            {
                
format(stringsizeof(string), " Please wait %d seconds to do this command."PlayerInfo2[ReduceTime][playerid]);
                
SendClientMessage(playeridGREYstring);
                return 
1;
            }
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridWHITE"USAGE: /putgun [Slot]");
                
SendClientMessage(playeridWHITE"Hint: Check /weapons (/weps) to see all used and unused slots.");
                return 
1;
            }
            new 
level;
            
level strval(tmp);
            new 
gunID GetPlayerWeapon(playerid);
            new 
gunAmmo GetPlayerAmmo(playerid);
            if(
gunID != && gunAmmo != 0)
            {
                
RemovePlayerWeaponEx(playeridgunID);
                
PlayerInfo[playerid][pInvWeapon][level] = gunID;
                
PlayerInfo[playerid][pInvAmmo][level] = gunAmmo;
                new 
gunname[100];
                
GetWeaponName(gunIDgunnamesizeof(gunname));
                
format(stringsizeof(string), "You put %s in your inventory."gunname);
                
SendClientMessage(playeridGREYstring);
                
PlayerInfo2[ReduceTime][playerid] = 2;
                return 
1;
            }
            else
            {
                
SendClientMessage(playeridGREY"You don't have a gun to put in!");
                return 
1;
            }
        }
        return 
1;
    } 
Could you tell me what was wrong in my code?
Reply


Messages In This Thread
Function is not implemented. - by seanny - 01.03.2013, 08:04
Re: Function is not implemented. - by DaRk_RaiN - 01.03.2013, 08:18
Re: Function is not implemented. - by seanny - 01.03.2013, 08:21
Re: Function is not implemented. - by seanny - 01.03.2013, 09:11
Re : Function is not implemented. - by yusei - 01.03.2013, 09:18
Re: Re : Function is not implemented. - by seanny - 01.03.2013, 09:24
Re : Function is not implemented. - by yusei - 01.03.2013, 09:26
Re: Function is not implemented. - by DaRk_RaiN - 01.03.2013, 09:28
Re: Function is not implemented. - by seanny - 01.03.2013, 10:17

Forum Jump:


Users browsing this thread: 3 Guest(s)