Jump to content

Smulyz

Membru
  • Posts

    49
  • Joined

  • Last visited

Everything posted by Smulyz

  1. eroarea C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(304) : warning 203: symbol is never used: "setadmin" Pawn compiler 3.10.10 Copyright (c) 1997-2006, ITB CompuPhase Header size: 4424 bytes Code size: 175064 bytes Data size: 17121792 bytes Stack/heap size: 16384 bytes; estimated max. usage=1279 cells (5116 bytes) Total requirements:17317664 bytes 1 Warning. [Finished in 1.7s] linia CMD:setadmin(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, 0xB1BFCC80, "Eroare: Nu ai gradul administrativ necesar."); new id, admin, string[64]; if(sscanf(params, "ud", id, admin)) return SendClientMessage(playerid, 0xB1BFCC80, "SYNTAX: /setadmin <ID/Name> <Admin Level (0-7)>"); if(admin < 0 || admin > 7) return SendClientMessage(playerid, -1, "Invalid Admin Level."); format(string, sizeof(string), "Felicitari! Ai fost promovat la admin %d.", admin); SendClientMessage(id, -1, string); new query[100]; PlayerInfo[playerid][pAdmin] = admin; mysql_format(SQL, query, sizeof(query), "UPDATE `accounts` SET `Admin` = '%d' WHERE `ID` = '%d'", PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pSQLID]); mysql_tquery(SQL, query); return 1; }
  2. +1 cel mai de treabă băiat
  3. linia de la cod mysql_format(SQL, gQuery, 128, "select = from accounts where Name = '%s' limit 1", GetName(playerid)); erorile C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : warning 236: unknown parameter in substitution (incorrect #define pattern) C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : warning 236: unknown parameter in substitution (incorrect #define pattern) C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : error 029: invalid expression, assumed zero C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : error 029: invalid expression, assumed zero C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : warning 215: expression has no effect C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : error 001: expected token: ";", but found "]" C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(111) : fatal error 107: too many error messages on one line
  4. asa new MySQL:SQL, Iterator:playerLogged<MAX_PLAYERS>; new gQuery[1024]; sau asa new MySQL:SQL, Iterator:playerLogged<MAX_PLAYERS>; new gQuery[1024];
  5. am pus-o langa new MySQL:SQL, Iterator:playerLogged<MAX_PLAYERS>; e bn
  6. imi poti da exemplu de cum sa o definesc ?
  7. Acum imi da erorile astea C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(106) : error 017: undefined symbol "gQuery" C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(106) : warning 215: expression has no effect C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(106) : error 001: expected token: ";", but found "]" C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(106) : error 029: invalid expression, assumed zero C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(106) : fatal error 107: too many error messages on one line linia de cod|: gQuery[0] = EOS; linile de jos mysql_format(SQL, gQuery, 128, "select = from accounts where Name = '%s' limit 1", GetName(playerid)); mysql_tquery(SQL, gQuery, "checkAccount", "i", playerid);
  8. linia de cod: if(mysql_errno(!= 0))(!= 0) print("[MySQL]: Baza de date nu s-a putut conecta cu succes."); erorile: C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(85) : error 029: invalid expression, assumed zero C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(85) : warning 215: expression has no effect C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(85) : error 001: expected token: ";", but found ")" C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(85) : error 029: invalid expression, assumed zero C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(85) : fatal error 107: too many error messages on one line versiunea mysql r41-4
  9. MySQL_format(SQL, gQuery, 128, "select = from accounts where Name = '%s' limit 1", GetName(playerid); MySQL_tquery(SQL, gQuery, "checkAccount", "i", playerid);
  10. M am corectat și tot îmi dă aceste erori sau poate am greșit eu îți dau acm ce am corectat
  11. new MySql:SQL, Iterator:playerLogged<MAX_PLAYERS>, gQuery[1024], gString[1024]; daca la asta te referi
  12. SQL = mysql_format("localhost", "root", "", "GM_PRINCIPAL"); {84} mysql_format(SQL, gQuery, 128, "select = from accounts where Name = '%s' limit 1", GetName((playerid); {108} mysql_tquery(SQL, gQuery, "checkAccount", "i", playerid); {109}
  13. C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(84) : error 035: argument type mismatch (argument 1) C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(84) : warning 213: tag mismatch: expected tag "MySql", but found none ("_") C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : warning 236: unknown parameter in substitution (incorrect #define pattern) C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : warning 236: unknown parameter in substitution (incorrect #define pattern) C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : warning 213: tag mismatch: expected tag "MySQL", but found "MySql" C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : error 029: invalid expression, assumed zero C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : error 029: invalid expression, assumed zero C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : warning 215: expression has no effect C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : error 001: expected token: ";", but found "]" C:/Users/Hawai/OneDrive/Desktop/GM PRINCIPAL/gamemodes/main.pwn(108) : fatal error 107: too many error messages on one line Compilation aborted. Pawn compiler 3.10.10 Copyright (c) 1997-2006, ITB CompuPhase 5 Errors. [Finished in 939ms] fac un sistem de register si login cu o baza de date si vr sa dau compile da nu merge, v-am lasat erorile mai sus daca m-ar putea ajuta cnv as-i fii recunoscator
×
×
  • 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.