08.06.2012, 19:12
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;
}
}

