Help my
#1

Help!!
Bed login system do not connect NPC bot
if(strcmp(cmdtext, "/login", true,6)==0)
{
if(playerDB[playerid][authstate]!=0){SendClientMessage(playerid,COLOR,"Jus jau prisijunges(-usi)"); return 1;}
new name[MAX_PLAYER_NAME],file[128];
GetPlayerName(playerid,name,sizeof(name));
format(file,sizeof(file),"saves/user/%s.ini",name);
if(!fexist(file)){SendClientMessage(playerid,COLOR ,"Jus neregistruotas, naudokite /register [pass]"); return 1;}
if(cmdtext[6]==0){SendClientMessage(playerid,COLOR,"prisijungti galite taip: /login [pass]"); return 1;}
if(CheckPass(file,cmdtext[7]))
{
new exp = dini_Int(file,"Xp");
if(dini_Int(file,"Admin") == 1) playerDB[playerid][admin]=true;
if(playerDB[playerid][admin])
{
SendClientMessage(playerid,GREEN,"Sveiki sugrize, administratoriu komandos: /akomandos .");
}
if(playerDB[playerid][admin])
{
SendClientMessage(playerid,0xD9E916FF,"Sveiki sugrize, moderatorių komandos: /vipkomandos");
}else{
SendClientMessage(playerid,COLOR,"Prisijungete, dabar galite testi.");
}
if(exp == -1) playerDB[playerid][authstate]=1; else
playerDB[playerid][authstate]=2;
return 1;
}
SendClientMessage(playerid,RED,"Slaptazodis neteisingas");
return 1;
}



What's wrong?
Reply
#2

Код:
put the code with tags ([ code],
)
Reply
#3

read kc tutorial i am heaving problems to with that tuto of understanding some code's but that doesn't say you have to dismiss to read so read Kc tutorial will help you Good look!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)