Jump to content
  • 0

pomoc Ukladaní[Dof2]


Amenadiel

Dotaz

Mám takovej problem když chci aby se mi uložila práce tak se mi neuloží :d

include

#include <Dof2>

 

enum pInfo
{
pMafie,
}

OnPlayerDis

DOF2_SetInt(file,"Mafie",PlayerInfo[playerid][pMafie]);

DIALOG_mafie


if(Mafie1[playerid] == 1) return SendClientMessage(playerid,COLOR_LIGHTBLUE,"[Mafie] Zde jsi už zamestnan!");
ResetPlayerWeapons(playerid);
SetPlayerSkin(playerid,1);
GivePlayerWeapon(playerid, 2, 1);
GivePlayerWeapon(playerid, 22, 68);
new string3[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), "Hráč %s Se prave zamestnal jako Mafian", name);
SendClientMessageToAll(0x33CCFF, string3);
PlayerInfo[playerid][pMafie] = 10;
DOF2_SetInt(AC,"Mafie",10);
DOF2_SaveFile();
Mafie1[playerid] = 1;
Dovazka[playerid] = 0;
Policie[playerid] = 0;
Bezprace[playerid] = 0;

Dialog reg

PlayerInfo[playerid][pMafie] = 0;
DOF2_SetInt(PR,"Mafie",0);
DOF2_SaveFile();

Dialog log

PlayerInfo[playerid][pMafie] = DOF2_GetInt(AC,"Mafie");

 

nevím co stim už kámoš mi doporučil dof2 že to mene zatežuje server ale mně se to zdá složite . . .

Link to comment
Share on other sites

7 odpovědí na tuto otázku

Recommended Posts

  • 0

hoď na pastebin celý kód takhle v útžkách se to blbě hledá..

 

jo jenže já to nahoře řekl blbe mně se to uloží ale potřebuju at se mi ta práce jakoby znovu dá když je reset je to neco jako admin lv akorat že to potřebuju aby mi to načetlo ten soubor a aby mu to zas hodilo mafiaa na 1 :d

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...