23.12.2012, 00:53
pawn Код:
if(strcmp(cmd, "/darcolete", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /colete [id] [quantia]");
return true;
}
new playa;
new health;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
health = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return true;
}
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
if(PlayerInfo[giveplayerid][pAdmin] >= 1342 && PlayerInfo[giveplayerid][pAdmin] >= 1341)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar colete ao Adm Dono!")
return true;
}
SetPlayerArmour(playa, health);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!");
}
}
return true;
pawn Код:
C:\Documents and Settings\Kluunk\Desktop\Serve\gamemodes\BHL.pwn(30112) : error 001: expected token: ";", but found "return"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.