Jump to content

Problema money >2 000 000 000

Recommended Posts

Salut, dupa cum zice si in titlu nu inteleg cum sa fac sa maresc biti de stocare.

Folosesc ly.inc de pe forumul oficial al sampului, si am facut a 2 variabila prefix in alt enum am facut si comanda

	enum vVar
	new pVar[MAX_PLAYERS][vVar]
	YCMD:givemoney(playerid, params[], help) 
    if(IsPlayerLogged[playerid] == 0) return SCM(playerid, COLOR_ERROR, NuSuntConectat);
	    new str[144], reason[144], targetid, valoare, beneficiar[24], trimitator[24];
    if(P_Date[playerid][pAdmin] == 0) return SCM(playerid, COLOR_ERROR, AdminOnly);
    if(P_Date[playerid][pAdmin] < 5) return SCM(playerid, COLOR_ERROR, GradInsuficient);
    if(sscanf(params, "us[24]s[144]", targetid, valoare, reason)) return SCM(playerid, COLOR_ADM, "INFOCMD: {FFFFFF}/givemoney <playername/id> <valoare> <motiv>");
	    if(targetid == INVALID_PLAYER_ID) return SCM(playerid, COLOR_ERROR, PlayerInexistent);
    if(IsPlayerLogged[targetid] == 0) return SCM(playerid, COLOR_ERROR, PlayerNeconectat);
    UpdateLY(pVar[targetid][vCash], P_Date[targetid][pCash], valoare);
    GivePlayerMoney(targetid, valoare);
    Update(targetid, pCash);
	    GetPlayerName(playerid, trimitator, sizeof(trimitator));
    GetPlayerName(targetid, beneficiar, sizeof(beneficiar));
    printf("%s i-a dat lui %s %s euroi. Motiv: %s", trimitator, beneficiar, valoare, reason);
    format(str, sizeof(str), "AdmCMD: %s i-a dat lui %s %s euroi. Motiv: %s", trimitator, beneficiar, valoare, reason);
    SendAdminMessage(COLOR_COMMANDS, str, 4);
    format(str, sizeof(str), "Ai primit de la %s %s euroi", trimitator, valoare);
    SCM(targetid, COLOR_BLUEGRAY, str);
    InsertLogs(playerid, str, LOG_MONEY);
    return true;

si nu imi da banii cand dau /givemoney, mai mult imi zice ca nu sunt online.

Pentru cine nu stie de ly.inc am sa pun aici variabilele din include poate este ceva gresit si acolo:


[funny] Mie sa nu fiu iar dobitoc adormit si sa fi uitat sa pun ceva.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.