Whats wrong???!!!
#5

Quote:
Originally Posted by sebacol
I created this script:
Код:
	if (strcmp("/alogin", cmdtext, true, 10) == 0)
	{
new name[250];
GetPlayerName(playerid ,name, 200);
new query[300];
new pass;
pass = cmdtext[1];
format(query, sizeof(query), "SELECT * FROM admins WHERE name='%s' AND pass='%s'",name,pass);
new num;
num = mysql_num_rows(mysql_query(query));
if(num == 0){
new trys;
trys = mysql_fetch_field_row(query, "trys");
if(trys == 1){
SendClientMessage(playerid, 0xAA3333AA, "You are kicked because you tryed to login into admin area.");
Kick(playerid);
}else{
SendClientMessage(playerid, 0xAA3333AA, "Sorry, try it again");
format(query, sizeof(query), "UPDATE admins SET trys='1' WHERE name='%s'",name);
mysql_query(query);
}
}else{
SendClientMessage(playerid, 0xAA3333AA, "You are now logged in as administrator");
new querya[210];
format(querya, 200, "UPDATE admins SET login='1' WHERE name='%s' AND pass='%s'",name,pass);
mysql_query(querya);
}

		return 1;
	}


And pawno see that everything is fine but when I start exe it shows this:Script[gamemodes/Server.amx]: Run time error 19: "File or function is not found"
on config I have: plugins sampmysql

and on pawno i have: #include <a_samp>
#include <a_mysql>
#include "../include/a_sampmysql.inc"

I dont know what I need to run my serv normal
Oh, my mistake. I tought you get error at compile.
You must have the Server.amx file inside your 'gamemodes' folder.
Reply


Messages In This Thread
Whats wrong???!!! - by sebacol - 18.02.2010, 22:06
Re: Whats wrong???!!! - by chosen - 19.02.2010, 06:44
Re: Whats wrong???!!! - by [SU]CHRiS - 19.02.2010, 07:16
Re: Whats wrong???!!! - by mysql - 19.02.2010, 08:09
Re: Whats wrong???!!! - by chosen - 19.02.2010, 09:10

Forum Jump:


Users browsing this thread: 2 Guest(s)