-
Posts
52 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
News
Documentation
Everything posted by Stephen
-
Da, am rezolvat.
-
Am găsit și eu un site un pic mai devreme. ( nu am avut net ) Mulțumesc oricum
-
Au trecut aproape 24 de ore, așa că m-am decis să postez. Nu merge acel id, Wopss. Am încercat și altele mai apropiate și nici așa. Altă idee?..
-
Ştiam că este un pickup, dar nu eram sigur, fiidcă nu l-am regăsit în lista de pickup-uri. Am să încerc spre dimineață. Revin cu edit. Mulțumesc.
-
Descriere tutorial: Cum pot face această canistră de benzină?
-
Am rezolvat. Mulțumesc amândurora!
-
Am luat un player la teste să vedem dacă funcționează. Am dat eu primul și l-am pus și pe el să dea. A spus ca a primit wanted 10 și banii. Deci nicio schimbare..
-
Adică? Cu ce înlocuiesc ora, minutele și secundele? P.S: Am făcut tot ce ai zis.
-
Aș fi făcut dacă aș fi știut.
-
Problemă întâlnită (descriere): Nu există interval de spargere a bancomatului. De exemplu, eu sparg acum bancomatul, iar Ion vine imediat și îl sparge și el. Ar trebui să fie un interval de o oră ca Ion să spargă și el. (+încă o problemă. Pot sparge și polițiștii bancomatul) Ero(area / rile) / warning-(ul / urile): - Liniile de cod / sursa / script-ul: //=============================[RobATM]=============================================== if(strcmp(cmd, "/rATM", true) == 0 || strcmp(cmd, "/robatm", true) == 0) { if(IsPlayerConnected(playerid)) { if(!IsPlayerInRangeOfPoint(playerid, 15.0, 1010.8463,-929.3484,42.3281)) { SendClientMessage(playerid, COLOR_YELLOW, " Nu esti la bancomatul LGN!"); return 1; } if(robbing[playerid] == 1) { SendClientMessage(playerid, COLOR_GREEN, " Ai jefuit deja bancomatul!"); return 1; } if(alreadyrobbed[playerid] == 1) { SendClientMessage(playerid, COLOR_YELLOW, "Bancomatul a fost deja spart! Asteapta inca o ora!"); return 1; } else { SendClientMessage(playerid, COLOR_GREEN, "Ai spart bancomatul si ai primit 50.000$! Scapa de copoi cat de repede poti!"); WantedLevel[playerid] = 10; robbing[playerid] = 1; GivePlayerMoney(playerid, 50000); } } return 1; } new robbing[MAX_PLAYERS]; new alreadyrobbed[MAX_PLAYERS]; new Robbed[MAX_PLAYERS]; new RobbedTime[MAX_PLAYERS]; Robbed[playerid] = 0; RobbedTime[playerid] = 0; if(Robbed == 1) { if(RobbedTime <= 0) { RobbedTime = 0; Robbed = 0; } else { RobbedTime -= 1; } } Imagini / Video (optional): - Aţi încercat să rezolvaţi singur?: Desigur.
-
Am rezolvat. Merci oricum, Gireada. Return 0 avea o vina.
-
Problemă întâlnită (descriere): Cum fac să apară doar un singur rând, atât cu acea culoare pusă la pDonate, cât și cu acea culoare ce ține de facțiunea în care ader? Ero(area / rile) / warning-(ul / urile): - Liniile de cod / sursa / script-ul: if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0) { new pName[MAX_PLAYER_NAME], string[256]; GetPlayerName(playerid, pName, sizeof(pName)); if(PlayerInfo[playerid][pDonateRank] == 1) { format(string, sizeof(string), "[{FF00D5}POWER USER{FFFFFF}] %s: %s", pName, text); } else if(PlayerInfo[playerid][pDonateRank] == 2) { format(string, sizeof(string), "[{FF00D5}VIP{FFFFFF}] %s: %s", pName, text); } else if(PlayerInfo[playerid][pDonateRank] == 3) { format(string, sizeof(string), "[{FF00D5}EXTRA VIP{FFFFFF}] %s: %s", pName, text); } ProxDetector(20.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5); } } Imagini / Video (optional): Aţi încercat să rezolvaţi singur?: Da
-
if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0) { new pName[MAX_PLAYER_NAME], string[256]; GetPlayerName(playerid, pName, sizeof(pName)); if(PlayerInfo[playerid][pDonateRank] == 1) { format(string, sizeof(string), "[{FF00D5}POWER USER{FFFFFF}] %s: %s", pName, text); } else if(PlayerInfo[playerid][pDonateRank] == 2) { format(string, sizeof(string), "[{FF00D5}VIP{FFFFFF}] %s: %s", pName, text); } else if(PlayerInfo[playerid][pDonateRank] == 3) { format(string, sizeof(string), "[{FF00D5}EXTRA VIP{FFFFFF}] %s: %s", pName, text); } ProxDetector(20.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5); } } Fac alt topic?
-
În cele din urmă am reușit să rezolv problema și singur, dar a apărut alta. Cum fac să apară doar un singur rând, atât cu acea culoare pusă la pDonate, cât și cu acea culoare ce ține de facțiunea în care ader?
-
Dacă m-ar lăsa forumul ar fi perfect.
-
Nimic schimbat, a rămas problema.
-
Poftim if(RegistrationStep[playerid] > 0) { if(RegistrationStep[playerid] == 1) { new idx; tmp = strtok(text, idx); if((strcmp("barbat", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Barbat"))) { GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[playerid][pSex] = 1; format(string, sizeof(string), "Deci %s, esti Barbat.", sendername); SendClientMessage(playerid, COLOR_WHITE, string); RegistrationStep[playerid] = 2; SetPlayerSkin(playerid, 60); SendClientMessage(playerid, COLOR_1BLUE, "Care este data ta de nastere? [ zi/luna/an ]"); return 0; } else if((strcmp("femeie", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Femeie"))) { GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[playerid][pSex] = 2; format(string, sizeof(string), "Deci %s, esti Femeie.", sendername); SendClientMessage(playerid, COLOR_WHITE, string); RegistrationStep[playerid] = 2; SetPlayerSkin(playerid, 91); SendClientMessage(playerid, COLOR_1BLUE, "Care este data ta de nastere? [ zi/luna/an ]"); return 0; } else { SendClientMessage(playerid, COLOR_1BLUE, "Ce esti? [ Barbat sau Femeie ]"); } return 0; } else if(RegistrationStep[playerid] == 2) { new year, month,day; getdate(year, month, day); new DateInfo[3][20]; split(text, DateInfo, '/'); if(year - strvalEx(DateInfo[2]) > 100 || strvalEx(DateInfo[2]) < 1 || strvalEx(DateInfo[2]) >= year) { SendClientMessage(playerid, COLOR_1BLUE, "Care este data ta de nastere? [ zi/luna/an ]"); return 0; } new check = year - strvalEx(DateInfo[2]); if(check == year) { SendClientMessage(playerid, COLOR_1BLUE, "Care este data ta de nastere? [ zi/luna/an ]"); return 0; } if(strvalEx(DateInfo[1]) > month) { check -= 1; } else if(strvalEx(DateInfo[1]) == month && strvalEx(DateInfo[0]) > day) { check -= 1; } PlayerInfo[playerid] = check; GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "Deci %s, ai %d ani.", sendername, PlayerInfo[playerid]); SendClientMessage(playerid, COLOR_WHITE, string); RegistrationStep[playerid] = 3; SendClientMessage(playerid, COLOR_1BLUE, "Unde vrei sa fi spawnat? LS(Los Santos) sau SF (San Fiero)"); return 0; } else if(RegistrationStep[playerid] == 3) { new idx; tmp = strtok(text, idx); if((strcmp("ls", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("LS"))) { PlayerInfo[playerid][pOrigin] = 1; SendClientMessage(playerid, COLOR_WHITE, "Ok, vei fi spawnat in Los Santos."); SendClientMessage(playerid, COLOR_1GREEN, "*** Este timpul pentru tutorial."); RegistrationStep[playerid] = 0; TutTime[playerid] = 1; return 0; } else if((strcmp("sf", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("SF"))) { PlayerInfo[playerid][pOrigin] = 2; SendClientMessage(playerid, COLOR_WHITE, "Ok, vei fi spawnat in San Fierro."); SendClientMessage(playerid, COLOR_1GREEN, "*** Este timpul pentru tutorial."); RegistrationStep[playerid] = 0; TutTime[playerid] = 1; return 0; } else { SendClientMessage(playerid, COLOR_1BLUE, "Unde vrei sa fi spawnat? [ LS(Los Santos) sau SF(San Fiero) ]"); } return 0; } return 0; }
-
Problemă întâlnită (descriere): Bug la Register. Ero(area / rile) / warning-(ul / urile): - Liniile de cod / sursa / script-ul: Sub această linie public OnPlayerText(playerid, text[]) - am adăugat următoarele { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0) { new pName[MAX_PLAYER_NAME], string[256]; { GetPlayerName(playerid, pName, sizeof(pName)); if(PlayerInfo[playerid][pDonateRank] == 1) { format(string, sizeof(string), "{FF00D5}[POWER USER]{FFFFFF} %s: %s", pName, text); } else if(PlayerInfo[playerid][pDonateRank] == 2) { format(string, sizeof(string), "{FF00D5}[VIP]{FFFFFF} %s: %s", pName, text); } else if(PlayerInfo[playerid][pDonateRank] == 3) { format(string, sizeof(string), "{FF00D5}[EXTRA VIP]{FFFFFF} %s: %s", pName, text); } else if(PlayerInfo[playerid][pDonateRank] == 0) { format(string, sizeof(string), "%s: %s", pName, text); } ProxDetector(20.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5); } return 0; } } Imagini / Video (optional): Aţi încercat să rezolvaţi singur?: De 2 zile tot încerc și nimic. P.S: Dacă e nevoie am să vă las și Register-ul cu întrebările.
-
Eroare am reușit să o rezolv singur, dar am rămas cu chestia ciudată de la Register. Ce aș putea să mai fac?
-
Nu merge nici așa.. aceeași problemă.
-
Am să încerc și asta dacă nu reușește Mafia să mă ajute. @ Gm-ul rulează și cu acea eroare, dar am dat de o altă problemă. La înregistrare chiar dacă nu ai donate rank nu te lasă să te înregistrezi. Răspunzi la întrebări pe chat, pe T și degeaba.
-
Aceasta este o problemă pentru secțiunea „Ajutor Scripting” P.S: Postează acolo și am să încerc să te ajut eu.
-
Noh, dar cum se face că am scos DMV de tot, de pe server și am lăsat doar mașinile nu mai primesc erori?