10.08.2012, 14:21
Код:
warning 219: local variable "str" shadows a variable at a preceding level
Код:
error 017: undefined symbol "string"
pawn Код:
GetPlayerName(playerid, name, sizeof(name));
GetPlayerPos(playerid, X, Y, Z);
format(string, sizeof(string), "[Local IC] %s (%d) : %s", name, playerid, text[0]);
for(new i = 0; i < MAX_PLAYERS; ++i)
{
if(IsPlayerInRangeOfPoint(i, 5, X, Y, Z)) SendClientMessage(i, -1, string);
}
change this
pawn Код:
format(string, sizeof(string), "[Local IC] %s (%d) : %s", name, playerid, text[0]);
pawn Код:
format(str, sizeof(str), "[Local IC] %s (%d) : %s", name, playerid, text[0]);
pawn Код:
if(IsPlayerInRangeOfPoint(i, 5, X, Y, Z)) SendClientMessage(i, -1, string);
pawn Код:
if(IsPlayerInRangeOfPoint(i, 5, X, Y, Z)) SendClientMessage(i, -1, str);

