Thank you people, I changed a lot, looked at my commands. And realized that I did some wrong things. So I changed that.
I now have this
But now I have got the following errors:
On line 168 is this:and on line 699 is:
sendername is made by GetPlayerName like in the command. 0 or 1 is the level it needs to be updated to.
I now have this
Code:
038: new strlogin[256];
153: set_mysql_loggedin_level(prname, level)
154: {
155: GetPlayerName(playerid,prname,sizeof(prname));
156: format(strlogin, sizeof(strlogin), "UPDATE users SET loggedin='%d' WHERE name = '%s'", level,prname);
157: samp_mysql_query(strlogin);
158: samp_mysql_store_result();
159: }
But now I have got the following errors:
Quote:E:\samp-server\8\gamemodes\xanland.pwn(155) : error 017: undefined symbol "playerid"
E:\samp-server\8\gamemodes\xanland.pwn(155) : error 035: argument type mismatch (argument 2)
E:\samp-server\8\gamemodes\xanland.pwn(16 : error 035: argument type mismatch (argument 1)
E:\samp-server\8\gamemodes\xanland.pwn(699) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
On line 168 is this:
Code:
set_mysql_loggedin_level(sendername, 0);
Code:
set_mysql_loggedin_level(sendername, 1);
sendername is made by GetPlayerName like in the command. 0 or 1 is the level it needs to be updated to.