Jump to content

ajutor erorii samp pawn sunt incepator


Smulyz

Recommended Posts

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

Link to comment
Share on other sites

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}

Link to comment
Share on other sites

Salut, arata unde ai definit hande-ul (variabila SQL) , expected tag "MySQL", but found "MySql" aceasta eroare ti-o da probabil ca ai definit in felul urmator

new MySql:SQL // varianta incorecta

new MySQL:SQL // varianta buna

incearca sa te corectezi acolo si vezi ce erori iti mai da

Link to comment
Share on other sites

5 minutes ago, Smulyz said:

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}

la 108 de ce ai pus GetName((playerid)? Trebuia sa pui GetName(playerid), doar cu o paranteza

 

EDIT: si are dreptate vicentzo-

Edited by Shad0wdpbgd
Link to comment
Share on other sites

47 minutes ago, Vicentzo- said:

Salut, arata unde ai definit hande-ul (variabila SQL) , expected tag "MySQL", but found "MySql" aceasta eroare ti-o da probabil ca ai definit in felul urmator

new MySql:SQL // varianta incorecta

new MySQL:SQL // varianta buna

incearca sa te corectezi acolo si vezi ce erori iti mai da

new 
    MySql:SQL, Iterator:playerLogged<MAX_PLAYERS>, gQuery[1024], gString[1024];
daca la asta te referi

 

Link to comment
Share on other sites

ba pai tu trebuie sa pui new MySQL:SQL acolo unde ai definit tu nu ce ai facut tu acolo

 

 "MySQL"_format(SQL, gQuery, 128, "select = from accounts where Name = '%s' limit 1", GetName(playerid);
    MySQL_tquery(SQL, gQuery, "checkAccount", "i", playerid);

aia nu are treaba

da mi un discord daca ai

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.