A few questions.
#3

What am I doing wrong here?
Код:
#include <a_samp>
#define TEAM_GANG 0
#define TEAM_LSPD 1
new gTeam[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp("/startevent", cmdtext, true))
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
               for (new i= 0; i<MAX_PLAYERS; i++)
             {
                SetPlayerPos(i, 245,3445, 1862,654 , 18,02273 );
                PlayerPlaySound(i,1057,0.0,0.0,0.0);
                GivePlayerWeapon(i,31,350);
                GivePlayerWeapon(i,24,350);
                GivePlayerWeapon(i,26,350);
                GivePlayerWeapon(i,27,350);

        }
        return 1;
 }
    return 0;
}
And this is the Error:
Код:
E:\Program Files\Rockstar Games\GTA San Andreas\pawno\event.pwn(13) : warning 219: local variable "i" shadows a variable at a preceding level
E:\Program Files\Rockstar Games\GTA San Andreas\pawno\event.pwn(15) : warning 202: number of arguments does not match definition
E:\Program Files\Rockstar Games\GTA San Andreas\pawno\event.pwn(15) : warning 202: number of arguments does not match definition
E:\Program Files\Rockstar Games\GTA San Andreas\pawno\event.pwn(15) : warning 202: number of arguments does not match definition
E:\Program Files\Rockstar Games\GTA San Andreas\pawno\event.pwn(23) : warning 217: loose indentation
E:\Program Files\Rockstar Games\GTA San Andreas\pawno\event.pwn(25) : warning 217: loose indentation
E:\Program Files\Rockstar Games\GTA San Andreas\pawno\event.pwn(27) : error 030: compound statement not closed at the end of file (started at line 9)
Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
A few questions. - by SampStunta - 16.09.2010, 10:42
Re: A few questions. - by Arrows73 - 16.09.2010, 10:50
Re: A few questions. - by SampStunta - 16.09.2010, 11:03
Re: A few questions. - by Retardedwolf - 16.09.2010, 11:15
Re: A few questions. - by SampStunta - 16.09.2010, 12:39
Re: A few questions. - by SampStunta - 16.09.2010, 23:37
Re: A few questions. - by Retardedwolf - 17.09.2010, 06:57
Re: A few questions. - by SampStunta - 17.09.2010, 09:55

Forum Jump:


Users browsing this thread: 1 Guest(s)