- 0
Problema /Buylicense
-
Similar Content
-
Problema turf
By Soryn.,
- 2 answers
- 210 views
-
- 1 reply
- 167 views
-
Problema
By ImJustSlim,
- 3 answers
- 279 views
-
- 2 replies
- 152 views
-
- 1 answer
- 297 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Er0R
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):
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
Link to comment
Share on other sites
5 answers to this question
Recommended Posts