Hello There, Guest! Login or Register


public doesn't work
#16
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
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(168) : 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);
and on line 699 is:
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.
Reply


Messages In This Thread
public doesn't work - by Xanland - 04-22-2008, 06:15 PM
Re: public doesn't work - by FarePak - 04-22-2008, 09:30 PM
Re: public doesn't work - by InVion - 04-22-2008, 09:33 PM
Re: public doesn't work - by Fry - 04-22-2008, 09:49 PM
Re: public doesn't work - by HaZe - 04-22-2008, 10:00 PM
Re: public doesn't work - by Xanland - 04-23-2008, 05:39 PM
Re: public doesn't work - by Motorola - 04-24-2008, 12:00 AM
Re: public doesn't work - by Fry - 04-24-2008, 12:24 AM
Re: public doesn't work - by Motorola - 04-24-2008, 12:28 AM
Re: public doesn't work - by Fry - 04-24-2008, 12:29 AM
Re: public doesn't work - by Motorola - 04-24-2008, 01:07 AM
Re: public doesn't work - by Jay - 04-24-2008, 12:06 PM
Re: public doesn't work - by Badeend - 04-24-2008, 12:40 PM
Re: public doesn't work - by Smoke - 04-24-2008, 12:43 PM
Re: public doesn't work - by Jay - 04-24-2008, 01:08 PM
Re: public doesn't work - by Xanland - 04-24-2008, 04:42 PM
Re: public doesn't work - by Smoke - 04-25-2008, 05:07 AM