Jump to content

Septy

Membru
  • Posts

    28
  • Joined

  • Last visited

    Never

Posts posted by Septy

  1. Uite:

    			new proplev = strval(tmp);
    	        //if(strcmp(x_job,"car",true) == 0)
    	        for(new i = 0; i < sizeof(HouseInfo); i++)
    			{
    				if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
    				{
    					format(string, sizeof(string), "House: %d", i);
    					SendClientMessage(playerid, COLOR_GRAD2, string);
    					if(proplev > 0)
    					{
    					    if(strcmp(x_job,"level",true) == 0)
    					    {
    							HouseInfo[i][hLevel] = proplev;
    						}
    						else if(strcmp(x_job,"price",true) == 0)
    					    {
    							HouseInfo[i][hValue] = proplev;
    						}
    					}
    				}
    			}
    		    else if(strcmp(x_job,"ownablecar",true) == 0)
    			{
    Si acum dupa ce dau compile imi apar erorile astea :
    C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(12083) : warning 219: local variable "mod" shadows a variable at a preceding level
    C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16557) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16557) : warning 215: expression has no effect
    C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16557) : error 001: expected token: ";", but found "if"
    C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(37066) : error 021: symbol already defined: "strtok"
    C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(37081) : error 047: array sizes do not match, or destination array is too small
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    4 Errors.
    
    Linia 12083:
    new mod = 50;
    				tmp = strtok(cmdtext, idx);
    				if(!strlen(tmp))
    				{
    Si linia 37081:
    	result[index - offset] = EOS;
    	return result;
    }

    Sa-mi spuneti daca trebuie sa mai postez vreo linie.

  2. Salut!Am si eu o problema la compilarea GM-ului.Am adaugat niste masini personale, dar cand il compilez imi da erorile astea:

    C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(4934) : warning 235: public function lacks forward declaration (symbol "JB_OnPlayerEnterRaceCheckpoint")
    C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16555) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16555) : warning 215: expression has no effect
    C:\Documents and Settings\Administrator\Desktop\BHM Serverv.0.6\gamemodes\eRP.pwn(16555) : error 001: expected token: ";", but found "if"
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    2 Errors.
    
    Uitati si linia 16555:
    else if(strcmp(x_job,"ownablecar",true) == 0)
    Si linia 4934:
    public OnPlayerEnterRaceCheckpoint(playerid)

  3. Pentru a putea baga obiectele/masinile in gm, dupa ce ai salvat mapa te duci in folderul mta/ server / mods / deatchmatch / resources si aici gasesti un folder cu numele la mapa pe care ai facut-o tu.Dupa ce copiezi datele din folderul acela, intrii pe www.convertffs.com si convertesti mapa:).Acum dai copy la tot ce ai convertit si le pui in gm la linia public OnGameModeInit().Sper ca ti-am fost de ajutor.

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