[Help] little weed system.
#8

Quote:
Originally Posted by xVIP3Rx
Посмотреть сообщение
You're using y_ini incorrectly, Delete all the files and use this one..
pawn Код:
CMD:plantseed(playerid,params[])
{
    if(pianteperplayer[playerid] == MAX_WEED_PER_PLAYER) return SendClientMessage(playerid,-1,"[SERVER] You can plant only 3 plant");
    if(pinfo[playerid][seeds] < 5) return 0;
    new id = contopiante;
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid,x,y,z);
    winfo[id][finita] = 0;
    winfo[id][poswx] = x;
    winfo[id][poswy] = y;
    winfo[id][poswz] = z;
    winfo[id][virtualworld] = GetPlayerVirtualWorld(playerid);
    marijuanaid[id] = CreateDynamicObject(3409,winfo[id][poswx],winfo[id][poswy],winfo[id][poswz],0.0,0.0,0.0,GetPlayerVirtualWorld(playerid));
    ApplyAnimation(playerid,LIBRARY,ANIMATION,4.1,0,1,1,0,5000,0);
    pinfo[playerid][seeds]--;
    winfo[id][piantata] = 1;
    pianteperplayer[playerid]++;
   
    new file[40];
    format(file,sizeof(file),dirweed,id);
    new INI:FIEL = INI_Open(file);
    INI_WriteInt(FILE, "Finita",0);
    INI_WriteFloat(FILE, "Posx",x);
    INI_WriteFloat(FILE, "Posz",z);
    INI_WriteFloat(FILE, "posy",y);
    INI_WriteInt(FILE, "VW",GetPlayerVirtualWorld(playerid));
    INI_Close(FILE);
   
    winfo[id][labelweed] = Create3DTextLabel("On Harvest..",0xFF0000FF,winfo[id][poswx],winfo[id][poswy],winfo[id][poswz],5.5,GetPlayerVirtualWorld(playerid));
    contopiante++;
    SetTimer("raccoltofinito",5000,false);
    return 1;
}
i don't use YSI_Ini but SII.. look in includes.
Reply


Messages In This Thread
[Help] little weed system. - by Galletziz - 20.04.2014, 14:45
Re: [Help] little weed system. - by xVIP3Rx - 20.04.2014, 14:47
Respuesta: [Help] little weed system. - by Xabi - 20.04.2014, 14:47
Re: Respuesta: [Help] little weed system. - by Galletziz - 20.04.2014, 14:51
Respuesta: Re: Respuesta: [Help] little weed system. - by Xabi - 20.04.2014, 14:56
Re: [Help] little weed system. - by xVIP3Rx - 20.04.2014, 14:58
Re: Respuesta: Re: Respuesta: [Help] little weed system. - by Galletziz - 20.04.2014, 15:00
Re: [Help] little weed system. - by Galletziz - 20.04.2014, 15:03
Respuesta: Re: Respuesta: Re: Respuesta: [Help] little weed system. - by Xabi - 20.04.2014, 15:05
Re: [Help] little weed system. - by Galletziz - 20.04.2014, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)