View Single Post
Old 21/02/2020, 10:25 PM   #10
d3Pedro
Huge Clucker
 
Join Date: Apr 2012
Location: darkness
Posts: 321
Reputation: 94
Default Re: SA-MP Scripting help me pls...

pawn Code:
mysql_tquery(SQL, qQuery, "insertAccount", "i", playerid);
You forgot a comma at this line

and this
pawn Code:
if(strlen(inputtext)) < 6 || strlen(inputtext) > 32)
should be:
pawn Code:
if(strlen(inputtext) < 6 || strlen(inputtext) > 32)



This
pawn Code:
mysql_tquery(SQL, qQuery, "insertAccount", "i", playerid); // the callback isn't the same of what you've defined

pawn Code:
function inserAccount(playerid) {
PlayerInfo[playerid][pSQLID] = cache_insert_id();
printf("%s s-a inregistrat #%d.", GetName(playerid), PlayerInfo[playerid][pSQLID]);
return 1;
}

You may fix it.
d3Pedro is offline   Reply With Quote