Jump to content

Vespa97

Membru
  • Posts

    44
  • Joined

  • Last visited

Posts posted by Vespa97

  1. La 20.09.2016 la 23:29, IonFlorescu a spus:

    Undefined symbol SetPlayerCash, De ce imi da eroarea asta?

     

    Liniile:
            if(IsPlayerConnected(playerid))
            {
                  if(PlayerInfo[playerid][pLevel] == 1)
                {
                    PlayerInfo[playerid][pLevel] += 2;
                    SetPlayerCash(playerid, 5000000);
                    SendClientMessage(playerid,COLOR_LIGHTGREEN,"{FFA500}==================={FF0000} [{E0FFFF}Bonus{FF0000}] {FFA500}===================");
                    SendClientMessage(playerid,COLOR_LIGHTGREEN,"{CCDEE0}Ai primit {00FA1D}3 LevelUP");
                    SendClientMessage(playerid,COLOR_LIGHTGREEN,"{CCDEE0}Ai primit {FFA500}5.000.000{00FA1D}$$ ");
                    SendClientMessage(playerid,COLOR_LIGHTGREEN,"{FFA500}==================={FF0000} [{E0FFFF}Bonus{FF0000}] {FFA500}===================");
                }
                else

    Pentru ca tu folosesti o functie/subprogram SetPlayerCash care nu exista la tine in GameMode

  2. Problema intalnita (descriere):Nu imi ia datele din baza de date
    Ero(area / rile) / warning-(ul / urile):Nu am
    Liniile de cod / sursa / script-ul(obligatoriu)

    CMD:loadjobs(playerid,params[])
    {
        if(P_Data[playerid][pAdmin] < 4)
    	    return SCM(playerid, albastru, "Nu ai rangul administrativ necesar");
    	else
    	{
            new Float:x,y,z;
    		new query[100];// definim query(interogare)
    		new string[100];
    		for(new i=1;i<=10;i++)
    		{
    		mysql_format(handle, query, sizeof(query),"SELECT FROM jobs WHERE ID='%i' PosX='%f',PosY='%f' ,PosZ='%f'",i,x,y,z);
    		mysql_query(handle, query);
    		Create3DTextLabel("Tasteaza [/angajare] daca vrei sa te angajezi!", 0x008080FF, x,y,z, 40.0, 0, 0);
    		format(string,sizeof(string),"x=%f y=%f z=%f \n", x,y,z);
    		SCM(playerid,rosu,string);
    	    }
    	}
    	return 1;
    }

    :
    Imagini / Video (optional):
    Ati incercat sa rezolvati singur?: Cod-ul este creat de mine.

  3. CMD:loadjobs(playerid,params[])
    {
        if(P_Data[playerid][pAdmin] < 4)
            return SCM(playerid, albastru, "Nu ai rangul administrativ necesar");
        else
        {
            new Float:x,y,z;
            new query[100];// definim query(interogare)
            for(new i=1;i<=10;i++)
            {
            mysql_format(handle, query, sizeof(query),"SELECT PosX='%f',PosY='%f' ,PosZ='%f' FROM jobs WHERE ID='%i'",x,y,z,i);
            Create3DTextLabel("Tasteaza [/angajare] daca vrei sa te angajezi!", 0x008080FF, x,y,z, 40.0, 0, 0);
            }
        }
        return 1;
    }

     

    Nu imi ia date din baza de date.

  4. Cred ca mai trebuie ceva in genu

    mysql_format(handle, gQuery, sizeof(gQuery), "UPDATE `players` SET `Gold` = '%d' WHERE `ID` = %d",PlayerInfo[playerid][Gold], PlayerInfo[playerid][pSQLID]);

    Gold=variabila unde se retine valoarea

  5. case DIALOG_Varsta:
            {
                if(!response) return Kick(playerid);
                if(response)
                {
                    new variable= strval(inputtext);
                    mysql_format(handle, query, sizeof(query), "UPDATE `jucatori`  WHERE `Nume`='%e' SET `Varsta` = '%d' ",GetName(playerid),variable);// se insereaza in tabelul cu conturi numele playerului, parola pe care a scris-o si ip pe care il are
                    mysql_query(handle, query);
    				SpawnPlayer(playerid);
                }
                return 1;
            }

    Ce este gresit?

  6. La 25.05.2016 la 21:10, Lumineux a spus:

    Comanda e perfect normala. Probabil ceea ce iti afecteaza sistemul DMV e in callbacks sau timers. Incearca sa verifici "OnPlayerStateChange" sau "OnPlayerEnterVehicle".

    Sau poate are ceva in gamemode, si daca nu are licenta il arunca din masina.

  7. Nu mai porneste servarul 

    
    ----------
    Loaded log file: "server_log.txt".
    ----------
    
    SA-MP Dedicated Server
    ----------------------
    v0.3.7-R2, (C)2005-2015 SA-MP Team
    
    [19:49:25] 
    [19:49:25] Server Plugins
    [19:49:25] --------------
    [19:49:25]  Loading plugin: sscanf
    [19:49:25]   Failed.
    [19:49:25]  Loaded 0 plugins.
    
    [19:49:25] 
    [19:49:25] Filterscripts
    [19:49:25] ---------------
    [19:49:25]   Loaded 0 filterscripts.
    
    [19:49:25] Script[gamemodes/OlteanClan.amx]: Run time error 19: "File or function is not found"
    [19:49:25] Number of vehicle models: 0

     

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