Jump to content
  • 0

Problema /Buylicense


Er0R

Question

Problema intalnita (descriere):Am facut un sistem de licente prin comanda /buylicense ,iar cand accesez comanda se inchide samp_server.exe,iar pe host da restart serverului
Ero(area / rile) / warning-(ul / urile):Cade serveruL
Liniile de cod / sursa / script-ul(obligatoriu):

Spoiler

public OnPlayerSelectedMenuRow(playerid, row)
{
    new Menu:CurrentMenu = GetPlayerMenu(playerid);
	if(CurrentMenu == LICMENU)
    {
        switch(row)
        {
            case 0:
            {
                if(PlayerInfo[playerid][pFishLic] == 0)
                {
			        if(GetPlayerCash(playerid) >= 10000)
			        {
                        SCM(playerid, COLOR_GREY, "*Ai cumparat licenta de pescuit pentru 10.000$ !");
                        GivePlayerCash(playerid, - 10000);
			            PlayerInfo[playerid][pFishLic] = 1;
			        }
			        else
			        {
			            SCM(playerid, COLOR_GREY, " Nu ai 10.000$ !");
			        }
			    }
			    else
			    {
			        SCM(playerid, COLOR_GREY, " Deja ai licenta de pescuit!");
			    }
		    }
            case 1:
            {
                if(PlayerInfo[playerid][pGunLic] == 0)
                {
                    if(GetPlayerCash(playerid) >= 15000)
		            {
                        SCM(playerid, COLOR_GREY, "* Ai cumparat licenta de arme pentru 15.000$ !");
                        GivePlayerCash(playerid, - 15000);
			            PlayerInfo[playerid][pGunLic] = 1;
			        }
			        else
			        {
			            SCM(playerid, COLOR_GREY, " Nu ai 15.000$ !");
			        }
		        }
		        else
			    {
			        SCM(playerid, COLOR_GREY, " Deja ai licenta de arme");
			    }
		    }
            case 2:
            {
                if(PlayerInfo[playerid][pBoatLic] == 0)
                {
                    if(GetPlayerCash(playerid) >= 20000)
		            {
                        SCM(playerid, COLOR_GREY, "* Ai cumparat licenta de navigat pentru 20.000$ !");
                        GivePlayerCash(playerid,-20000);
			            PlayerInfo[playerid][pBoatLic] = 1;
			        }
                    else
			        {
			            SCM(playerid, COLOR_GREY, " Nu ai 20.000$ !");
			        }
			    }
			    else
		        {
			        SCM(playerid, COLOR_GREY, " Deja ai licenta de navigat!");
		        }
		    }
            case 3:
            {
                if(PlayerInfo[playerid][pFlyLic] == 0)
                {
                    if(GetPlayerCash(playerid) >= 30000)
		            {
                        SCM(playerid, COLOR_GREY, "* Ai cumparat licenta de pilotaj 30.000$ !");
                        GivePlayerCash(playerid, - 20000);
			            PlayerInfo[playerid][pFlyLic] = 1;
			        }
			        else
			        {
			            SCM(playerid, COLOR_GREY, " Nu ai 30.000$ !");
			        }
			    }
			    else
			    {
			        SCM(playerid, COLOR_GREY, " Deja ai licenta de pilotaj !");
		   	    }
		    }
	    }
    }
	return 1;
}


CMD:buylicense(playerid, params[])
{
	    if(PlayerToPoint(5.0, playerid, -973.9688,1060.8028,1345.6762))
	    {
		    ShowMenuForPlayer(LICMENU, playerid);
	    }
	}

new Menu:LICMENU;

 


Imagini / Video (optional):-
Ati incercat sa rezolvati singur?: De "N' ori

 

Edited by Er0R
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
Acum 1 oră, Er0R a spus:

In server log nu este nimic anormal dar....uite aici

Spoiler


----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7, (C)2005-2015 SA-MP Team

[12:38:48] 
[12:38:48] Server Plugins
[12:38:48] --------------
[12:38:48]  Loading plugin: mysql.dll
[12:38:48]  >> plugin.mysql: R39-3 successfully loaded.
[12:38:48]   Loaded.
[12:38:48]  Loading plugin: sscanf.dll
[12:38:48] 

[12:38:48]  ===============================

[12:38:48]       sscanf plugin loaded.     

[12:38:48]    (c) 2009 Alex "Y_Less" Cole

[12:38:48]    0.3d-R2 500 Players "dnee"

[12:38:48]  ===============================

[12:38:48]   Loaded.
[12:38:48]  Loading plugin: streamer.dll
[12:38:48] 

*** Streamer Plugin v2.7.8 by Incognito loaded ***

[12:38:48]   Loaded.
[12:38:48]  Loading plugin: Whirlpool.dll
[12:38:48]  
[12:38:48]  ==================
[12:38:48]  
[12:38:48]   Whirlpool loaded
[12:38:48]  
[12:38:48]  ==================
[12:38:48]  
[12:38:48]   Loaded.
[12:38:48]  Loaded 4 plugins.

[12:38:49] 
[12:38:49] Ban list
[12:38:49] --------
[12:38:49]  Loaded: samp.ban
[12:38:49] 
[12:38:49] 
[12:38:49] Filterscripts
[12:38:49] ---------------
[12:38:49]   Loading filterscript 'aer.amx'...
[12:38:49]   Loading filterscript 'awq.amx'...
[12:38:49]   Loading filterscript 'race.amx'...

[12:38:49]   Loading filterscript 'Ds.amx'...
[12:38:49]   Loaded 4 filterscripts.

[12:38:50] Houses: 141
[12:38:50] Bussines: 18
[12:38:51] SBiz: 45
[12:38:51] Stuff Loaded
[12:38:51] Charity Loaded
[12:38:51] Turf: 46
[12:38:51] Papers: 10
[12:38:51] Dynamic Factions: 16
[12:38:52] Cars: 102
[12:38:52] Seifuri: 19
[12:38:52] Stock Loaded
[12:38:52] Script loaded - KicKeD Rpg  v0.4
[12:38:52] Number of vehicle models: 101
[12:38:55] [connection] 127.0.0.1:56987 requests connection cookie.
[12:38:56] Incoming connection: 127.0.0.1:56987 id: 0
[12:38:56] [join] Er0R has joined the server (0:127.0.0.1)
[12:39:05] Er0R has logged in with IP 127.0.0.1.

 

Acesta este Server log dupa ce am accesat comanda,si cel dinainte sa accesez e tot la fel

Edited by Er0R
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.