Jump to content

CrystyaN

Membru
  • Posts

    282
  • Joined

  • Last visited

    Never

Posts posted by CrystyaN

  1. Deci bun sa incepem cu inceputu..

    aseara dupa ce am facut ceva prin mod, am dat compile si mia mers totul perfect , acum dimineata cand dau compile fara sa adaug /scot nimic imi da niste erori :-??

    D:\SaMp\eGammer\gamemodes\eGamer.pwn(12075) : error 021: symbol already defined: "strtok"
    D:\SaMp\eGammer\gamemodes\eGamer.pwn(12090) : error 047: array sizes do not match, or destination array is too small
    D:\SaMp\eGammer\gamemodes\eGamer.pwn(16368) : error 047: array sizes do not match, or destination array is too small
    D:\SaMp\eGammer\gamemodes\eGamer.pwn(16893) : error 047: array sizes do not match, or destination array is too small
    D:\SaMp\eGammer\gamemodes\eGamer.pwn(16955) : error 047: array sizes do not match, or destination array is too small
    
    strtok(const string[], &index)
    {
    	new length = strlen(string);
    	while ((index < length) && (string[index] <= ' '))
    	{
    		index++;
    	}
    
    	new offset = index;
    	new result[20];
    	while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    	{
    		result[index - offset] = string[index];
    		index++;
    	}
    	result[index - offset] = EOS;
    	return result;
    }

    Mai trebe sa va dau ceva?:(

  2. Daca vrei sa faci sa apara un text cand intra in masina de ex la toate masinile...

    Faci asa daca folosesti acest sistemul acesta...

    adaugi asta

    forward IsAllCars(carid); 
    apoi
    public IsAllCars(carid)
    {
    	if(carid >= 1 || carid <= 1000)
    	{
    		return 1;
    	}
    	return 0;
    }
    
    apoi la onplayerstatechange
    		if(IsAllCars(newcar) ) 
    		{
                new vid = GetPlayerVehicleID(playerid);
                if(EngineSTATE[newcar] == 1)
                {
                       GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                       SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
                       SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Atentie! Foloseste /stopengine pentru a opri masina.");
                }
                else
                {
                       GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                       SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
                       SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Atentie! Foloseste /startengine pentru a porni masina.");
                }
    		}

  3. Hellau...

    Deci sa trecem la subiect..

    Eu acum imi pornesc sv-ul din pc sa ma joc cu niste prieteni 4fun, dar de cateva zile numai eu pot sa intru pe el.. ei nu mai pot intra.. le zice sv don't responding, dar eu pot sa intru fara nici o problema...

    Ma poate ajuta cineva?  :afro:

  4. de ce imi da aceste 3  warning

    pawno\include\JunkBuster.inc(2960) : warning 201: redefinition of constant/macro (symbol "OnPlayerConnect")
    pawno\include\JunkBuster.inc(2961) : warning 201: redefinition of constant/macro (symbol "OnPlayerDisconnect")
    pawno\include\JunkBuster.inc(2962) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit")
    Cand pun
    #include JunkBuster
    #include JunkBusterFS
    ia pune asa ":
    #include <JunkBuster>
    #include <JunkBusterFS>

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