SA-MP Forums Archive
Another problem :S - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Another problem :S (/showthread.php?tid=364601)



Another problem :S REPP++++++++++ - Vizi - 31.07.2012

Hi
I have something for my roleplay gamemode i dont know how to tell that
With that command i can add drugs money in a safe
but i have an error can you help me ?

pawn Код:
F:\Users\Daniel\Desktop\GamingClub RolepLay\gamemodes\DreamWorld.pwn(2951) : error 004: function "SaveSefDrogaSystem" is not implemented
F:\Users\Daniel\Desktop\GamingClub RolepLay\gamemodes\DreamWorld.pwn(2962) : error 004: function "SaveSefDrogaSystem" is not implemented
F:\Users\Daniel\Desktop\GamingClub RolepLay\gamemodes\DreamWorld.pwn(2977) : error 004: function "SaveSefPariSystem" is not implemented
F:\Users\Daniel\Desktop\GamingClub RolepLay\gamemodes\DreamWorld.pwn(2988) : error 004: function "SaveSefPariSystem" is not implemented
F:\Users\Daniel\Desktop\GamingClub RolepLay\gamemodes\DreamWorld.pwn(2999) : error 004: function "SaveSefMatsSystem" is not implemented
F:\Users\Daniel\Desktop\GamingClub RolepLay\gamemodes\DreamWorld.pwn(3014) : error 004: function "SaveSefMatsSystem" is not implemented



Re: Another problem :S - Cjgogo - 31.07.2012

Because obviusly you have copy pasted the command,but not the function...or show us the code,but I still think that I am right.


Re: Another problem :S - Vizi - 31.07.2012

this command i have take from another gamemode
do you think that i dont copy/paste all the command/function ?


Re: Another problem :S - Cjgogo - 31.07.2012

then show the command and the code


Re: Another problem :S - Vizi - 31.07.2012

there is the public

pawn Код:
public SaveSefDrogaSystem()
{
    new coordsstring[256];
    format(coordsstring, sizeof(coordsstring), "%d,%d,%d,%d", droga[lcndroga], droga[ydroga], droga[lsgdroga], droga[gsfdroga]);
    new File: file2 = fopen("sefovi/droga.ini", io_write);
    fwrite(file2, coordsstring);
    fclose(file2);
    return 1;
}



Re: Another problem :S - KappaCro - 31.07.2012

It's not problem in function.
Post the code and Ill fix it


Re: Another problem :S - Vizi - 31.07.2012

Quote:
Originally Posted by KappaCro
Посмотреть сообщение
It's not problem in function.
Post the code and Ill fix it
I dont understand you?What code?


Re: Another problem :S - SomebodyAndMe - 31.07.2012

pawn Код:
forward SaveSefDrogaSystem();
public SaveSefDrogaSystem()
{
    new coordsstring[256];
    format(coordsstring, sizeof(coordsstring), "%d,%d,%d,%d", droga[lcndroga], droga[ydroga], droga[lsgdroga], droga[gsfdroga]);
    new File: file2 = fopen("sefovi/droga.ini", io_write);
    fwrite(file2, coordsstring);
    fclose(file2);
    return 1;
}
And he meant the code with the command


Re: Another problem :S - Vizi - 31.07.2012

I have forwardet


Re: Another problem :S - Vizi - 31.07.2012

Look this it is ok?

look this is it ok?

pawn Код:
if(dialogid == 7005)//LCN SEF, STAVAJNE DROGA
        {
                new cashdeposit = strval(inputtext);
                if(cashdeposit < 1)  { SendClientMessage(playerid, COLOR_GREY, "{FF4040}GRESKA:{FFFFFF}Sumata nemoze da bide pod 0."); return 1; }
                if (cashdeposit > PlayerInfo[playerid][pDrugs])  { SendClientMessage(playerid, COLOR_WHITE, "{FF4040}GRESKA:{FFFFFF}Nemate tolku droga."); return 1; }
                PlayerInfo[playerid][pDrugs] -= cashdeposit;
                new curfunds = droga[lcndroga];
                droga[lcndroga]=cashdeposit+droga[lcndroga];
                SendClientMessage(playerid, COLOR_WHITE, "|____ LCN SEF ____|");
                format(string, sizeof(string), "  Staveno: $%d",cashdeposit);
                SendClientMessage(playerid, COLOR_GRAD4, string);
                format(string, sizeof(string), "  Nov Status: $%d", droga[lcndroga]);
                SendClientMessage(playerid, COLOR_WHITE, string);
                SaveSefDrogaSystem();