[Ajuda] Erro
#7

Quote:
Originally Posted by RedMF
Посмотреть сообщение
Pode mandar o comando /SetVip do seu gamemode ?
ta ai

Quote:

if(strcmp(cmd, "/dvip", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 3000)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para usar esse comando.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /dvip [id] [Nivel] [Meses]");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /dvip [id] [Nivel] [Meses]");
return 1;
}
new vaga;
vaga = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /dvip [id] [Nivel] [Meses]");
return 1;
}
new level;
level = strval(tmp);
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
format(string, sizeof string, "Vocк Desbugou o VIP Nнvel %d para %s com %d Meses", vaga, giveplayer, level);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
if(level == 1)
{
SetarVip(para1, vaga, level,2);
}
else if(level == 2)
{
SetarVip(para1, vaga, level,2);
}
SalvarPlayer(para1);
SaveVip();
}
}
}
return 1;

Reply


Messages In This Thread
Erro - by GMVega - 29.10.2016, 00:20
Re: Erro - by RedMF - 29.10.2016, 00:25
Re: Erro - by GMVega - 29.10.2016, 00:26
Re: Erro - by Relaxed - 29.10.2016, 00:27
Re: Erro - by RedMF - 29.10.2016, 00:30
Re: Erro - by GMVega - 29.10.2016, 00:30
Re: Erro - by GMVega - 29.10.2016, 00:32
Re: Erro - by RedMF - 29.10.2016, 00:38
Re: Erro - by Relaxed - 29.10.2016, 00:52
Re: Erro - by GMVega - 29.10.2016, 01:03

Forum Jump:


Users browsing this thread: 5 Guest(s)