zNx.
-
Posts
23 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
News
Documentation
Posts posted by zNx.
-
-
Da-ti si tu seama,are ceva in comun cu DIALOG_REGISTER3.Vezi si tu care e numarul de DIALOG_REGISTER PE care-l ai si vezi ce ce dialog_register iti lipseste(daca nu ma insel e intre 1-6 numarul).
NU MAI DA-TI MURA IN GURA INCEPATORILOR.
-
Nume:Andrei
Nick:zNx
Vârsta:16 ani.
Experienta administrare:2-3 ani.
Propun numele pentru comunitate:Gold-RPG,Gold-Play,G-Gaming(Gold-Gaming).
Bafta in continuare.
-
-
Problema intalnita (descriere):Deci am o comanda pe strcm si vreau sa o transform in zcmd...
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu):Quoteif(!strcmp(cmd, "/turfs", true))
{
if(IsPlayerConnected(playerid))
{
if(OnDuty[playerid]==0)
{
OnDuty[playerid]=1;
for(idx = 1;idx< 51; idx++)
{
if(TeritoriuData[idx][tOwned] == 4)
{
GangZoneShowForPlayer(playerid, turf[idx], TEAM_VAGOS_COLOR);
}
else if(TeritoriuData[idx][tOwned] == 5)
{
GangZoneShowForPlayer(playerid, turf[idx], TEAM_GROVE_COLOR);
}
else if(TeritoriuData[idx][tOwned] == 10)
{
GangZoneShowForPlayer(playerid, turf[idx], TEAM_BALLAS_COLOR);
}
else if(TeritoriuData[idx][tOwned] == 11)
{
GangZoneShowForPlayer(playerid, turf[idx], TEAM_AZTECAS_COLOR);
}}
SendClientMessage(playerid, COLOR_STAFF_INFO, "Ai activat teritoriile.");
}else{
OnDuty[playerid]=0;
for(idx = 1;idx< 51; idx++)
{
if(TeritoriuData[idx][tOwned] == 4)
{
GangZoneHideForPlayer(playerid, turf[idx]);
}
else if(TeritoriuData[idx][tOwned] == 5)
{
GangZoneHideForPlayer(playerid, turf[idx]);
}
else if(TeritoriuData[idx][tOwned] == 10)
{
GangZoneHideForPlayer(playerid, turf[idx]);
}
else if(TeritoriuData[idx][tOwned] == 11)
{
GangZoneHideForPlayer(playerid, turf[idx]);
}}
SendClientMessage(playerid, COLOR_STAFF_INFO, "Ai dezactivat teritoriile.");
}
}
return false;
}
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da,am lasat-o asa iar cand intram pe server mergea numai comanda aceasta... -
Esti sigur ca aceea este baza de date buna ma refer la .sql?OnplayerLogin cauta verificarea parolei,te lasa sa te inregistrezi ?
-
Am schimbat procesorul,tot aceiasi problema ma gandesc sa nu fie ceva de la comanda...
-
Fara rezultat.
-
Alte optiuni ? Nu as incepe sa refac comenzi si chesti...
-
1 minute ago, WiDuAlK said:
Din cate am vazut de-alungul vremii, multi au patit asa ceva utilizand ZCMD, personal nu m-a prea intereseat aceasta problema asa ca nu m-am documentat dar, eu nu am avut aceasta problema pentru ca nu folosesc ZCMD. Iti sugerez sa schimbi procesorul de comenzi si problema se rezolva de la sine.
Imi recomanzi un procesor,care sa mearga si sa nu mai am probleme de genul acesta ?
-
Deci,tu daca nu pCarKey1 sau altele,modifici cu variabilele tale.Tu trebuie sa adaugi aceasta chestie la inceputul comenzi:
Quoteif(IsPlayerInRangeOfPoint(playerid, 4.5, 328.9831,-1513.6188,36.0391))
{
if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, COLOR_ERROR, "You need at least level 3 !");
if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1 && PlayerInfo[playerid][pPremiumAccount] == 0) return SendClientMessage(playerid, COLOR_ERROR, "* Ai deja 2 masini! (Pentru a detine mai mult de 2 masini ai nevoie de cont premium)");
if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1 && PlayerInfo[playerid][pPremiumAccount] == 1)Dupa ce ai adaugat,mergi unde se termina comanda si adaugi:
Quote}
}
else SendClientMessage(playerid, COLOR_ERROR, "Nu te aflii la Dealership!");
return 1;
}REPET! MODIFICI CU VARIABILELE TALE!
-
Problema intalnita (descriere):Deci comanda exista,dar serverul imi spune ca Unknow Command,si nu stiu de ce,comanda nu este scrisa la public OnPlayerCommandPerformed(playerid, cmdtext[], success).
Ero(area / rile) / warning-(ul / urile):QuoteCMD:v(playerid, params[])
{
new vstring[254], vlock[30], cw = PlayerInfo[playerid][pCarKey], cw1 = PlayerInfo[playerid][pCarKey1], cw2 = PlayerInfo[playerid][pCarKey2], cw3 = PlayerInfo[playerid][pCarKey3];if(VehiclesInfo[cw][vLock] == 0 && VehiclesInfo[cw1][vLock] == 0)
{
vlock = "{2ED131}Unlocked";
}
if(VehiclesInfo[cw][vLock] == 1 && VehiclesInfo[cw1][vLock] == 1)
{
vlock = "{D41320}Locked";
}
if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1)
{
VControl[playerid] = 1;
format(vstring, sizeof(vstring), "%s - %s\n%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vModel])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock);
ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
}
if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] == 0)
{
VControl[playerid] = 2;
format(vstring, sizeof(vstring), "%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vServerID])-400], vlock);
ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
}
if(PlayerInfo[playerid][pCarKey] == 0 && PlayerInfo[playerid][pCarKey1] >= 1)
{
VControl[playerid] = 3;
format(vstring, sizeof(vstring), "%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock);
ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
}
if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1 && PlayerInfo[playerid][pCarKey2] >= 1 && PlayerInfo[playerid][pCarKey3] >= 1)
{
VControl[playerid] = 4;
format(vstring, sizeof(vstring), "%s - %s\n%s - %s\n%s - %s\n%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw2][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw3][vServerID])-400], vlock);
ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
}
return 1;
}
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?: Da,inainte era return 0; si tot nu mergea,am pus 1 si la fel. -
Am comanda :
QuoteCMD:v(playerid, params[])
{
new vstring[254], vlock[30], cw = PlayerInfo[playerid][pCarKey], cw1 = PlayerInfo[playerid][pCarKey1], cw2 = PlayerInfo[playerid][pCarKey2], cw3 = PlayerInfo[playerid][pCarKey3];if(VehiclesInfo[cw][vLock] == 0 && VehiclesInfo[cw1][vLock] == 0)
{
vlock = "{2ED131}Unlocked";
}
if(VehiclesInfo[cw][vLock] == 1 && VehiclesInfo[cw1][vLock] == 1)
{
vlock = "{D41320}Locked";
}
if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1)
{
VControl[playerid] = 1;
format(vstring, sizeof(vstring), "%s - %s\n%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vModel])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock);
ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
}
if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] == 0)
{
VControl[playerid] = 2;
format(vstring, sizeof(vstring), "%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vServerID])-400], vlock);
ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
}
if(PlayerInfo[playerid][pCarKey] == 0 && PlayerInfo[playerid][pCarKey1] >= 1)
{
VControl[playerid] = 3;
format(vstring, sizeof(vstring), "%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock);
ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
}
if(PlayerInfo[playerid][pCarKey] >= 1 && PlayerInfo[playerid][pCarKey1] >= 1 && PlayerInfo[playerid][pCarKey2] >= 1 && PlayerInfo[playerid][pCarKey3] >= 1)
{
VControl[playerid] = 4;
format(vstring, sizeof(vstring), "%s - %s\n%s - %s\n%s - %s\n%s - %s", NameCar[GetVehicleModel(VehiclesInfo[cw][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw1][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw2][vServerID])-400], vlock, NameCar[GetVehicleModel(VehiclesInfo[cw3][vServerID])-400], vlock);
ShowPlayerDialog(playerid, DIALOG_V, DIALOG_STYLE_LIST, "Vehicles:", vstring, "Select", "Close");
}
return 1;
Care cand o scriu pe server imi zice ca nu exista comanda,dar defapt comanda e creata.
PS:Comanda nu e in public OnPlayerCommandPerformed".
-
Asigurate ca ai in scriptfile urmatoarele fisiere: geoip(Data base file),GeoIPCity.dat,,GeoIP.dat.
Si sa te uiti in pawno--->includes daca ai GeoIP_Plugin.inc.
-
Cuata in gm comanda: /gps,sau CMD:GPS si arata-mio.
-
Dupa ce ai modifact myacc.inc,recompileaza gamemode-ul.
-
Deci eu nu am spus ca acest gamemode este facut de mine,eu sunt bun prieten cu ~Whitter~ (asa zisul creator a acestui GM)i-am cerut permisiunea si a spus ca este ok ca sa il pun si pe alte site-uri.
SpoilerDestul de ok gamemode-ul, dar pare neterminat, nu știu de ce. ( asta doar din ce văd în poze )
@Pulse
Il poti descarca si poti vedea singur daca este functional/neterminat.
-
Gamemode STERS!
-
De curand ma tot gandeam cum sa imortalizes SA:MP-ul din Romania.
Si cred ca poza asta arata SA:MP-ul din Romania: http://postimg.org/image/oqzmrkqjh/
-
Salut, da-mi add pe skype: cucu.andrei.923
Vorbim acolo.
-
Deci,cand vreau sa intru pe un server imi da o eroare gen "Runtime Error"uitati aici:
-
Vam deschis ochi :)
-
Vehicule
in Arhivă probleme
Posted