[HELP]Script errors.. conflict
#1

Error in my code onplayertext... give this error, and conflict the symbol i

Код:
warning 219: local variable "i" shadows a variable at a preceding level
error 076: syntax error in the expression, or invalid function call
Код:
    new
        i;
    while (text[++i])
	{
        if ('A' <= text[i] <= 'Z') text[i] |= 0x20;
    }
    //
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        {
            if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
            {
				new
					s[128];
                format(s, sizeof(s), "%s: %s", name, text[0]);
                SendClientMessageToAll(-1, s);
                return 0;
            }
            return 0;
        }
    }
Reply


Messages In This Thread
[HELP]Script errors.. conflict - by TheBluec0de - 08.06.2012, 19:12
Re: [HELP]Script errors.. conflict - by [KHK]Khalid - 08.06.2012, 19:17
Re: [HELP]Script errors.. conflict - by Face9000 - 08.06.2012, 19:18
Re: [HELP]Script errors.. conflict - by TheBluec0de - 08.06.2012, 19:21
Re: [HELP]Script errors.. conflict - by MP2 - 08.06.2012, 19:26
Re: [HELP]Script errors.. conflict - by [KHK]Khalid - 08.06.2012, 19:28

Forum Jump:


Users browsing this thread: 3 Guest(s)