Aproveitando para nгo criar outro Topic , alguem pod eme ajudar com esses :
Quote:
C:\Users\Laercio\Documents\Meus arquivos recebidos\ftn.pwn(27) : error 001: expected token: ";", but found "new"
C:\Users\Laercio\Documents\Meus arquivos recebidos\ftn.pwn(232) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Laercio\Documents\Meus arquivos recebidos\ftn.pwn(247) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Laercio\Documents\Meus arquivos recebidos\ftn.pwn(337) : error 035: argument type mismatch (argument 1)
|
Linha do erro :
Code completo :
pawn Код:
//_____[Pickups]_____//
new iBuy1;
new iBuy2;
Linha do warning:
pawn Код:
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
Code completo :
pawn Код:
SetTimerEx("timer", annoucment, false, "i", playerid);
GivePlayerMoney(playerid, spawnmoney);
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s entrou no server.", pname);
SendClientMessageToAll(COLOR_RED, string);
return 1;
}
Linha do warning:
pawn Код:
new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
Code completo :
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
switch(reason)
{
case 0: format(string, sizeof(string), "%s Saiu do servidor por problemas com crash/coneзгo. ", pname);
case 1: format(string, sizeof(string), "%s Saiu do servidor. ", pname);
case 2: format(string, sizeof(string), "%s Foi Kikado ou Banido. ", pname);
}
SendClientMessageToAll(COLOR_RED, string);
return 1;
}
Linha do erro:
pawn Код:
if(strcmp(cmd, "/afk", true) == 0)
Code completo :
pawn Код:
if(strcmp(cmd, "/afk", true) == 0)
{
if(Afk[playerid]==0)
{
Afk[playerid]=1;
SetPlayerVirtualWorld(playerid, 1);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid,0);
TextDrawShowForPlayer(playerid,Ausente);
TextDrawShowForPlayer(playerid,On);
new Ausentes[200];
GetPlayerName(playerid, Ausentes, 30);
format(string, 256, "[BDF]%s Esta Ausente /afk", Ausentes);
SendClientMessageToAll( 0x00FFFFAA, string);
}else{
SendClientMessage(playerid,0xF60000AA,"(ERRO) Vocк jб estб no modo AFK!");
return 1;
}
return 1;
}