02.08.2011, 03:38
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128], name[24];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[ID: %d]%s: %s", playerid, name, text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
pawn Код:
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\gamemodes\COD5.pwn(5328) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\gamemodes\COD5.pwn(5338) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\gamemodes\COD5.pwn(5339) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\gamemodes\COD5.pwn(5379) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\gamemodes\COD5.pwn(5396) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\gamemodes\COD5.pwn(5428) : error 021: symbol already defined: "string"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.