Jump to content
  • 0

Cerere ajutor sql save:|


xt3z0ne

Question

Nick:Johnny

Problema:Deci am facut 2 chesti in sql da nu prea stiu bine sql treaba este ca nu imi urca in baza de date numele SAdmin si Special Minigun nu stiu ce sai mai fac..

Erori / warnings:Nu am erori am facut asa

Lini/script: lA OnFilterScriptInit() AM PUS[pawn]

    BUD::Setting(opt.Database, "LuxAdmin/Others.db");

BUD::Setting(opt.Asynchronous, true);

BUD::Setting(opt.KeepAliveTime, 3000);

BUD::Setting(opt.CheckForUpdates, true);

    BUD::Initialize();

//=======================================================

    BUD::VerifyColumn("SAdmin", BUD::TYPE_STRING);

    BUD::VerifyColumn("Sminigun", BUD::TYPE_STRING);

[/pawn]

La public OnPlayerConnect(playerid)

Am pus[pawn]

pinfo[playerid][sAdmin] = 0;

pinfo[playerid][sminigun] = 0;

[/pawn]

La LoginPlayer(playerid) am pus

[pawn]

//--------------------------------------------------------------------------

new userid, SKRSA[30], SKRSM[30];

//--------------------------------------------------------------------------

BUD::GetStringEntry(userid, "SAdmin", SKRSA, 30);

sscanf(SKRSA, "p</>i", pinfo[playerid][sAdmin]);

//--------------------------------------------------------------------------

BUD::GetStringEntry(userid, "Sminigun", SKRSM, 30);

sscanf(SKRSM, "p</>i", pinfo[playerid][sminigun]);

//--------------------------------------------------------------------------

[/pawn]

La SavePlayerStats(playerid)

am pus

[pawn]

new userid, SKRSA[30], SKRSM[30];

//--------------------------------------------------------------------------

format(SKRSA, 30, "%d", pinfo[playerid][sAdmin]);

BUD::SetStringEntry(userid, "SAdmin", SKRSA);

//--------------------------------------------------------------------------

format(SKRSM, 30, "%d", pinfo[playerid][sminigun]);

BUD::SetStringEntry(userid, "Sminigun", SKRSM);

//-------------------------------------------------

[/pawn]

Si cam atat am facut si mai este comenzile .:

Ai incercat sa rezolvi singur ?:

Aveti si pentru mine vreo rezolvare:|

1399935440-untitled.PNG

Sunt un retardat

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

Edit eu am deja :| cum mi-ai spus tu

    //--------------------------------------------------------------------------
    new userid, SKRSA[30], SKRSM[30];
    //--------------------------------------------------------------------------
    BUD::GetStringEntry(userid, "SAdmin", SKRSA, 30);
    sscanf(SKRSA, "p</>i", pinfo[playerid][SAdmin]);
    //--------------------------------------------------------------------------
    BUD::GetStringEntry(userid, "Sminigun", SKRSM, 30);
    sscanf(SKRSM, "p</>i", pinfo[playerid][Sminigun]);
    //-------------------------------------------------------------------------- 

Sunt un retardat

Link to comment
Share on other sites

Nu ai raspuns in termen de 48 de ore.Topic inchis!

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.