Jump to content

gunskill

Membru
  • Posts

    257
  • Joined

  • Last visited

    Never

Posts posted by gunskill

  1. if(strcmp(cmdtext, "/bandana", true) == 0)
        {
           if(IsPlayerConnected(playerid))
           {
    	        if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pDonateRank] >= 1)
    	        {
    			    ShowPlayerDialog(playerid,bandana,DIALOG_STYLE_LIST,"Bandana","Bandana 1\nBandana 2\nBandana 3\nBandana 4\nBandana 5\nBandana 6\nBandana 7\nBandana 8\nBandana 9\nBandana 10\nRemove Bandana","OK","");
    			    return 1;
    		    }
    		    else SendClientMessage(playerid, COLOR_GRAD1, "   Numai Donatori Pot Folosi Aceasta Comanda!!");
    	    }
        }

  2. vreau sa fac register cu dialog dar m-am lovit de o problema la

    {
    	        	new year, month,day;
    			getdate(year, month, day);
    	        	new DateInfo[3][20];
    			split(text, DateInfo, '/');
    			if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year)
    			{
    			    SendClientMessage(playerid, COLOR_1BLUE, "Care este data ta de nastere? [ zi/luna/an ]");
    			    return 0;
    			}
    			new check = year - strvalEx(DateInfo[2]);
    			if(check == year)
    			{
    			    SendClientMessage(playerid, COLOR_1BLUE, "Care este data ta de nastere? [ zi/luna/an ]");
    			    return 0;
    			}
    			if(strvalEx(DateInfo[1]) > month)
    			{
    			    check -= 1;
    			}
    			else if(strvalEx(DateInfo[1]) == month && strvalEx(DateInfo[0]) > day)
    			{
    			    check -= 1;
    			}
    			PlayerInfo[playerid][pAge] = check;
    			GetPlayerName(playerid, sendername, sizeof(sendername));
    			format(string, sizeof(string), "Deci %s, ai %d ani.", sendername, PlayerInfo[playerid][pAge]);
    			SendClientMessage(playerid, COLOR_WHITE, string);
    			RegistrationStep[playerid] = 3;//asta cautam
          			SendClientMessage(playerid, COLOR_1BLUE, "Unde vrei sa fi spawnat? LS(Los Santos) sau SF (San Fiero)");
          			//SendClientMessage(playerid, COLOR_GREEN, "[Info]: Ok, acum iti vom prezenta un tutorial, iar daca vrei sa sari peste el scrie '/skip'.");
    			return 0;
    	    }

    si il fac dialog dar imi da erroare de la split(text, DateInfo, '/'); cu undefinited symbol text

    umpic de ajutor?

    am inteles ca trebuie sa folosesc sscanf dar nu prea stiu cum

  3. incearca /mk

    1) /mk usecp1 asta ca sa apara checkpoint's cand playerul facea misiunea

    2) /mk cp va crea cp pentru misiune

    3) /mk game va crea un text cand playerul intra in cp

    4) /mk title titlul misiunii

    5) /mk reward premiul care il va primii playerul daca termina misiunea

    6)/savemission name salveaza tot ce ai facut

    7)/loadmission incarca misiunea

    p.s:poti face maxim 6 cp!

    pace:d

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