Jump to content

2 intrebari


Vespa97

Recommended Posts

Salut revin cu 2 intrebari:

1.Cum fac in functie de cati bani am in "portofel" sa am si unde este sageata...acolo unde este incadrat.

2.De ce in comanda /stats imi apare la oras si la sex acele semne?

if (strcmp("/stats", cmdtext, true, 10) == 0)
	{
	    new admin1=P_Data[playerid][admin];
		new varsta1=P_Data[playerid][varsta];
		new sex1=P_Data[playerid][sex];
		new oras1=P_Data[playerid][oras];
		new bani1=P_Data[playerid][bani];
	    new string2[200];
	    new name[MAX_PLAYER_NAME];
    	GetPlayerName(playerid, name, sizeof(name));
		format(string2, sizeof(string2),"Player-ul %s ,locuieste in %s , are varsta de %d ,avand sex %s si are in portofel %d$\nAdmin:%d",name,oras1,varsta1,sex1,bani1,admin1);
        ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "Status:", string2, "Close","");
		return 1;
	}

 

sa-mp-000.png

Edited by Vespa97
Am gresit ceva la cod
Link to comment
Share on other sites

format(string2, sizeof(string2),"Player-ul %s este nascut in Los Santos , are varsta de %d ani si are in portofel %d$\nAdmin:%d",name,varsta1,bani1,admin1); 

am lasat-o asa... oricum multumesc. Daca sti cum pot sa rezolv si prima intrebare...

Edited by Vespa97
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.

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