Not reading file? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Not reading file? (
/showthread.php?tid=93987)
Not reading file? -
Yoyoyo - 27.08.2009
Код:
public OnPlayerSpawn(playerid)
{
if(dini_Exists(udb_encode(playername)))
{
if(logged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_RED, "Your account has been detected in our database. Use /login [password] to log in!");
}
}
else if(!dini_Exists(udb_encode(playername)))
{
SendClientMessage(playerid, COLOR_RED, "You are not registered! Use /register [password]");
}
return 1;
}
My account in my server is registered but the message always comes up saying that im not?
Am I doing something wrong?
If I do /login it still works tho.
Re: Not reading file? -
Calgon - 27.08.2009
This won't be that useful, but there was a mega thread discussion around DracoBlue's dini, you really should use the fexist() instead of dini_Exists().
Re: Not reading file? -
Jefff - 27.08.2009
Where is in this public GetPlayerName?
Код:
public OnPlayerSpawn(playerid)
{
new playername[24];
GetPlayerName(playerid,playername,24);
if(dini_Exists(udb_encode(playername)))
bla bla
Re: Not reading file? -
Yoyoyo - 27.08.2009
oh i guess i rlly didnt think of that :P