15.08.2013, 02:48
Oi gente, tava tentano compila aqui, pesquiser no forum, ja li a apostila do pawno, mais ñ consegui descrubiri pq da esses erros.. alguem pode me ajudar?
ERROS:
e o comando: ( SÒ OS ERROS, OS WARNINGS JA ESTAVAM )
ERROS:
PHP код:
C:\Users\Jonathan\Desktop\New Virtual Life\pawno\include\antibot.inc(84) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(7071) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(7075) : warning 211: possibly unintended assignment
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10863) : warning 219: local variable "ReturnUser" shadows a variable at a preceding level
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10873) : warning 225: unreachable code
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10873) : error 012: invalid function call, not a valid address
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10873) : warning 215: expression has no effect
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10873) : error 001: expected token: ";", but found ")"
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10873) : error 029: invalid expression, assumed zero
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPGt.pwn(10873) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
PHP код:
if(strcmp(cmd, "/cadeia",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new ReturnUser;
new tmp;
new giveplayerid;
new tempo[20];
new tempo2;
if(dini_Int(file, "aAdmin") == 1 || IsPlayerAdmin(playerid) || pAdmin[playerid] > 3){
{
SendClientMessage(playerid, Vermelho, " Você não esta autorizado para usar este comando!");
return true;
}
giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
tempo = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, Vermelho, "USE: /cadeia [id] [Tempo] [Motivo]");
return true;
}
if(!strlen(tempo))
{
SendClientMessage(playerid, Vermelho, "USE: /cadeia [id] [Tempo] [Motivo]");
return true;
}
tempo2 = strval(tempo);
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[100];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ PA ] O(A) Administrador(a) %s colocou %s na Cadeia, por %s minutos, Motivo: ( %s )",PlayerName(playerid), giveplayer, tempo, (result));
SendClientMessageToAll(AdminCor, string);
ResetPlayerWeaponsEx(giveplayerid);
OnPlayerUpdate(giveplayerid);
PlayerInfo[giveplayerid][Preso] = 6;
PlayerInfo[giveplayerid][pJailTime] = tempo2 * 60;
SetPlayerInterior(giveplayerid, 6);
SetPlayerPos(giveplayerid, 263.8820,77.4002,1001.0391);
}
}
else
{
SendClientMessage(playerid, Vermelho, " O jogador está offline !");
return true;
}
}
return true;
}
}