[help] some little warnings in my script
#2

First off, please have the decency to use common sense before coming here and asking us for help.

Second off, this is obviously not going to work. You forgot the ammo parameter.

pawn Код:
//Wrong
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == menudildo)
{
    switch(row)
    {
        case 0:{
            GivePlayerWeapon(playerid, 10); //<-------------- warning
        }
        case 1:{
            GivePlayerWeapon(playerid, 11); //<-------------- warning
        }
        case 2:{
            GivePlayerWeapon(playerid, 12); //<-------------- warning
        }
        case 3:{
            GivePlayerWeapon(playerid, 13); //<-------------- warning
        }
    }
}

//Right
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == menudildo)
{
    switch(row)
    {
        case 0:{
            GivePlayerWeapon(playerid, 10, ammoamounthere);
        }
        case 1:{
            GivePlayerWeapon(playerid, 11, ammoamounthere);
        }
        case 2:{
            GivePlayerWeapon(playerid, 12, ammoamounthere);
        }
        case 3:{
            GivePlayerWeapon(playerid, 13, ammoamounthere);
        }
    }
}
Reply


Messages In This Thread
[help] some little warnings in my script - by myandyou - 23.06.2013, 20:51
Re: [help] some little warnings in my script - by Kindred - 23.06.2013, 20:53
Re: [help] some little warnings in my script - by myandyou - 23.06.2013, 20:55

Forum Jump:


Users browsing this thread: 1 Guest(s)