[Ajuda] DOF2
#4

Estou com problema no salvamento na hora irei mandar o codigo


pawn Код:
CMD:davip(playerid, params[])//Dar Vip codigo
{
    new id,dias,nivel;
    if(!IsPlayerAdmin(playerid))  return SendClientMessage(playerid, -1, "Vocк nгo й adm");
    if(sscanf(params, "ui", id, dias)) return SendClientMessage(playerid, -1, "USe /darvip [id] [dias]");
    if(!IsPlayerConnected(id))return SendClientMessage(playerid, -1,"[ERRO] Id invalido!");
    PlayerInfo[id][Vip] = 1;
    PlayerInfo[id][Dias] = (gettime() +(Dias*86400));
    format(String,sizeof(String),"Vocк recebeu %d dias de vip", dias);
    SendClientMessage(playerid, -1,String);
    return true;
}
OnPlayerDisconnect
pawn Код:
DOF2_SetString(arquivo,"Dias",PlayerInfo[playerid][Dias]);

Na pasta Fica Dias = 35
Reply


Messages In This Thread
DOF2 - by ZeZin - 12.04.2015, 15:13
Re: DOF2 - by Dayvison_ - 12.04.2015, 15:29
Re: DOF2 - by Schocc - 12.04.2015, 15:39
Re: DOF2 - by ZeZin - 12.04.2015, 16:14
Re: DOF2 - by ProKillerpa - 12.04.2015, 16:23
Re: DOF2 - by ZeZin - 12.04.2015, 18:53
Re: DOF2 - by GabrielDias_Invision - 12.04.2015, 20:30
Re: DOF2 - by ZeZin - 12.04.2015, 20:57
Re: DOF2 - by GabrielDias_Invision - 12.04.2015, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)