30.07.2011, 15:59
Simplesmente Sv sem Nenhum erro caindo,pq ajuda no do comando e no do sv ! , Ai tentei por um comando de /darnivel deu dois Warnings
Warnisgs:
Comandos:
Warnisgs:
PHP код:
C:\Documents and Settings\rene\Desktop\Desktop\Brasil Virtual Living - 1.0B\gamemodes\BLS.pwn(38815) : warning 215: expression has no effect
C:\Documents and Settings\rene\Desktop\Desktop\Brasil Virtual Living - 1.0B\gamemodes\BLS.pwn(38815) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
PHP код:
if(strcmp(cmd, "/darnivel", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "/darnivel [ id ] [nivel]");
return 1;
}
new playa;
new nivel;
new para1;
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
nivel = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if(admtrabalhando[playerid] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return 1;
}
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
ConsumingMoney[playa] = 1;
PlayerInfo[playerid][pLevel],(nivel);
new year, month,day;
getdate(year, month, day);
new hour, minute;
gettime(hour,minute);
format(string, sizeof(string), "%s deu Nivel %d para %s ( %d/%d/%d - %d:%d )", pNome(playerid),nivel,pNome(playa),year, month, day,hour, minute);
ABroadCast(COLOR_YELLOW, string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Voce nгo esta autorizado a usar este comando!");
}
}
return 1;
}