-
Posts
555 -
Joined
-
Last visited
-
Days Won
13
Everything posted by Matt
-
Undeva ai depasit limita unui vector. Spre exemplu ai definit vectorul v[100] si ai incercat sa accesezi indexul 105, care nu este posibil. (deoarece acest vector are index de la 0 la 99) Arata-ne functia LoadBizz.
-
Daca zici ca nici nu primesti vreun mesaj mai special: if(PaintType[playerid] > 0) PlayerPlaySound(playerid,17802,0.0,0.0,0.0); if(PaintType[damagedid] > 0) { if(PaintTime[PaintType[damagedid]-1] < 1) SetPlayerHealth(damagedid, 100.0); } Verifica daca variabila PaintType pentru jucatori e 0, altceva nu vad sa fie problema..
-
Primesti vreun fel de mesaj cand nu iti iei damage sau anti-cheat ul arata vreun mesaj?
-
Verifica daca ai functiile OnPlayerGiveDamage / OnPlayerWeaponShot si arata-le.
-
mz mz
-
Recomand gamemode-ul GoldPlay al lui Leonard.
-
Pacman e un joc care a aparut acum 30 de ani, eu am facut o idee a codului in C++
-
Helau. Un mini pacman facut de mine in aprox. 1 ora, mai mult ca sa intelegeti modul prin care este facut. [Protected content]
-
Nu stiu ce vrei sa faci dar.. YCMD:addluckycode(playerid, params[], help) { if(PlayerInfo[playerid][pAdmin] >= 4) { addcodes(playerid, 1); return 1; } } Incearca acum.
-
Ai folosit functia dar nu ai pus toti parametrii in comanda.
-
Arata-ne si functia addcodes
-
Oh wow, codul ala e asa de aiurea facut, iti recomand si eu sa rescrii comanda...
-
Ai incercat sa extragi niste date care nu exista dintr o tabela din baza de date. Verifica din ce tabela trebuiau sa faca parte si adauga le. "Colors", "BTemp", "BYear", "BMonth", "BDay", "BBy", "BReason", "Tokens".
-
gettime() se foloseste de ceasul care este pe pc ul pe care ruleaza server-ul, probabil ca atat este ora unde se afla dedicatul.
-
Recomand.
-
Arata bine, bafta cu proiectul.
-
moratii mati
-
Probabil nu ai implementat bine ce ti-am dat eu. Functia ta ar trebui sa arate asa: public CheckAccountUserName(extraid) { cache_get_data(rows, fields, handle); if(rows == 0) { SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME"."); ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel"); } else { if(tempbanat[extraid] == 0) { InterpolateCameraPos(extraid, 1689.3907,-1732.2874,20.3228,1062.3051,-1732.3589,24.6772, 10000, CAMERA_MOVE); InterpolateCameraLookAt(extraid,1062.3051,-1732.3589,24.6772,1062.3051,-1732.3589,24.6772, 10000, CAMERA_MOVE); SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME"."); ShowPlayerDialog(extraid, 55, DIALOG_STYLE_PASSWORD, "Logare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB" !\n\nVa rugam sa scrieti parola mai jos pentru a va conecta pe server.", "Login", "Cancel"); SetPlayerWeather(extraid, 0); } } return 1; } Daca nu e de aici, arata-mi linia unde iti apare eroarea.
-
if(rows == 0) { new charCounts[5]; GetPlayerName(extraid, szPlayerName, MAX_PLAYER_NAME); for(new n; n < MAX_PLAYER_NAME; n++) { switch(szPlayerName[n]) { case '[', ']', '.', '$', '(', ')', '@', '=': charCounts[1]++; case '_': charCounts[0]++; case '0' .. '9': charCounts[2]++; case 'a' .. 'z': charCounts[3]++; case 'A' .. 'Z': charCounts[4]++; } if(charCounts[0] == 0 || charCounts[0] >= 3) { SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME"."); ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel"); } else if(charCounts[1] >= 1) { SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME"."); ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel"); } else if(charCounts[2] >= 1) { SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME"."); ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel"); } else if(charCounts[3] == strlen(szPlayerName) - 1) { SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME"."); ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel"); } else if(charCounts[4] == strlen(szPlayerName) - 1) { SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME"."); ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel"); } else { SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME"."); ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel"); } } } Nu imi dau seama ce ai incercat sa faci aici dar nu se executa unul din if-urile care contine dialogul de register. Incearca: if(rows == 0) { SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_WHITE, ""); SendClientMessage(extraid, COLOR_GENANNOUNCE, ""ALBASTRU"Server:{FFFFFF} Bine ai venit pe "SERVER_NAME"."); ShowPlayerDialog(extraid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Inregistrare", ""ALB"Bine ai venit pe "ALBASTRU""SERVER_NAME""ALB"!\n\nNu detii un cont.\nTe rog sa inregistrezi contul tau tastand o parola mai jos.", "Register", "Cancel"); }
-
Codul pe care ti l-am cerut se afla pe undeva pe la functia OnPlayerConnect....
-
Inlocuiesti plugin-ul de MYSQL cu cel potrivit (R41), bagi include-ul si apoi compilezi.
-
Asta e cand raspunzi la dialog, arata-mi cand iti apare. ShowPlayerDialog(playerid, DIALOG_REGISTER..............);
ABOUT LEAKS COMMUNITY
LEAKS.RO is a resource community where aspiring webmasters can share content and receive support for a wide variety of software platforms — no license required.