new cname[256], idcar[256], have[256];
cname = dini_Get(GetPlayerRLFile(playerid),"CarName");
idcar = dini_Get(GetPlayerRLFile(playerid),"CarID");
have = dini_Get(GetPlayerRLFile(playerid),"HaveCar");
dini_Remove(GetPlayerRLFile(playerid));
dini_Create(GetPlayerRLFile2(playerid));
dini_Set(GetPlayerRLFile(playerid),"Name",IsAskForNick[Player]);
dini_IntSet(GetPlayerRLFile(playerid),"HaveCar",have); <-----------shit #1 (13962)
dini_IntSet(GetPlayerRLFile(playerid),"CarID",idcar); <-----------shit #2 (13963)
dini_Set(GetPlayerRLFile(playerid),"CarName",cname);
new cname[256], idcar[256], have[256];
cname = dini_Get(GetPlayerRLFile(playerid),"CarName");
idcar = dini_Get(GetPlayerRLFile(playerid),"CarID");
have = dini_Get(GetPlayerRLFile(playerid),"HaveCar");
dini_Remove(GetPlayerRLFile(playerid));
dini_Create(GetPlayerRLFile2(playerid));
dini_Set(GetPlayerRLFile(playerid),"Name",IsAskForNick[Player]);
dini_IntSet(GetPlayerRLFile(playerid),"HaveCar",strval(have));
dini_IntSet(GetPlayerRLFile(playerid),"CarID",strval(idcar));
dini_Set(GetPlayerRLFile(playerid),"CarName",cname);
new cname[256], idcar[256], have[256];
cname = dini_Get(GetPlayerRLFile(playerid),"CarName");
idcar = dini_Get(GetPlayerRLFile(playerid),"CarID");
have = dini_Get(GetPlayerRLFile(playerid),"HaveCar");
dini_Remove(GetPlayerRLFile(playerid));
dini_Create(GetPlayerRLFile2(playerid));
dini_Set(GetPlayerRLFile(playerid),"Name",IsAskForNick[Player]);
dini_IntSet(GetPlayerRLFile(playerid),"HaveCar",strval(have)); // <-----------shit #1
dini_IntSet(GetPlayerRLFile(playerid),"CarID",strval(idcar)); // <-----------shit #2
dini_Set(GetPlayerRLFile(playerid),"CarName",cname);
try this:
PHP код:
|
have and idcar are arrays and in function dini_IntSet the 3rd argument should be an integer value.
I guess this will help you to get rid of your "annoying errors": PHP код:
|