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);
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.
public OnPlayerText(playerid, text[])
{
new str[128], Name[24];
new Year, Month, Day;
getdate(Year, Month, Day);
GetPlayerName(playerid, Name, sizeof(Name));
format(str, sizeof(str), "[%d/%d/%d][ID: %d]%s: %s", Year, Month, Day, playerid, Name, text);
SendClientMessageToAll(GetPlayerColor(playerid), str);
new str[128], Name[24];
new Year, Month, Day;
getdate(Year, Month, Day);
GetPlayerName(playerid, Name, sizeof(Name));
format(str, sizeof(str), "[%d/%d/%d][ID: %d]%s: %s", Year, Month, Day, playerid, Name, text);
SendClientMessageToAll(GetPlayerColor(playerid), str);
return 0;
C:\Users\Alex\Desktop\Otros\CodSamp\codsamp_aw\gamemodes\COD5.pwn(5313) : warning 225: unreachable code
pawn Код:
pawn Код:
|