Jump to content
  • 0

Ajutor enumeratie biz uri


calin1996

Question

2 answers to this question

Recommended Posts

te referi ca,cand player scrie o comanda gen /bizes sa ii apara toate bizurile ?

daca da,atunci sub public OnPlayerCommandText(playerid, cmdtext[]) ,pui

	if (strcmp("/mycommand", cmdtext, true, 10) == 0)
	{
		SendClientMessage(playerid, COLOR_RED, "Biz-urile existente pe server sunt");
                SendClientMessage(playerid, COLOR_RED, "aici scri primul bizz ");
                SendClientMessage(playerid, COLOR_RED, "aici scri al-doilea bizz ");
                //si tot asa
		return 1;
	}
sau te referi la genul asta de enumeratie
enum bizes
{
    biz1,
    biz2,
    //....
}

Link to comment
Share on other sites

Nu ma,deci cum e functia:

[pawn]if(PlayerInfo(playerid)(pMember) == 12 || if(PlayerInfo(playerid)(pLeader) == 12 || If(PlayerInfo(playerid)(pMember) == 13 || if(PlayerInfo(playerid)(pLeader) == 13)[/pawn]

Asa sa fie o enumeratie de asta de Bizuri,sa le adaug un pickup ceva la ele

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.