giveallweapon having "i" error
#1

I've made this code from giveweapon cmd and all my "all" commands are working except this one.It's getting "i" problem.Please help me
Код:
dcmd_giveallweapon(playerid, params[])
{
        new string[128];
        new Wepid;
        new Ammo;
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, MAX_PLAYER_NAME);
        if(sscanf(params, "u", Wepid,Ammo)) return SendClientMessage(playerid, -1,"{FF0099}[ADMIN]{FFFFFF}/giveallweapon [Wepid] [Ammo]");
        for(new i = 0; i < MAX_PLAYERS; i++)
    {
          if(!IsPlayerConnected(i)) return 1;
          GivePlayerWeapon(i, Wepid, Ammo);
          
    }
        format(string,sizeof(string),"{FF0099}[ADMIN]{FFFFFF}Everyone has been given a %s!",aWeaponNames[Wepid],Ammo);
        SendClientMessageToAll(COLOR_ADMIN,string);
        GivePlayerWeapon(i,Wepid,Ammo);
        return 1;
}
Error code
Код:
C:\Users\HACKIFYOUCAN\Desktop\NEW\FunGaming Stunt-Freeroam\gamemodes\SFCRRPG.pwn(5109) : error 017: undefined symbol "i"
Код:
In line 5109:  GivePlayerWeapon(i,Wepid,Ammo);
Reply


Messages In This Thread
giveallweapon having "i" error - by Sojo12 - 22.03.2014, 11:50
Re: giveallweapon having "i" error - by Dan. - 22.03.2014, 11:51
Re: giveallweapon having "i" error - by aboa - 22.03.2014, 11:53
Re: giveallweapon having "i" error - by ReD_HunTeR - 22.03.2014, 11:55
Re: giveallweapon having "i" error - by Sojo12 - 22.03.2014, 11:58
Re: giveallweapon having "i" error - by Hanuman - 22.03.2014, 11:58
Re: giveallweapon having "i" error - by Konstantinos - 22.03.2014, 11:59
Re: giveallweapon having "i" error - by Sojo12 - 22.03.2014, 12:04

Forum Jump:


Users browsing this thread: 1 Guest(s)