SA-MP Forums Archive
OnPlayerConnect help - 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)
+--- Thread: OnPlayerConnect help (/showthread.php?tid=636992)



OnPlayerConnect help - Slavica - 06.07.2017

I have no idea how to make level/payday system so I found a tutorial on the internet...
Anyways...I copy pasted it because I rly dont need to know how it works,I just need it for my server...
It had 5 errors,I fixed them and now it all works fine.
And here comes the problem...

OnPlayerConnect is suppose to load the level and the exp of the player from the file,the file that was created on OnPlayerDisconnect...The guy who did the tutorial didnt do it and I have no idea how to use yini.

Please help me,I have no idea what am I suppose to add on OnPlayerConnect.

link to tut: https://sampforum.blast.hk/showthread.php?tid=377207


Re: OnPlayerConnect help - HoussemGaming - 06.07.2017

Why you don't ask in the same thread,
Quote:

Bumping old topics (even ones that are years old) is preferable to creating a new one on the same subject.




Re: OnPlayerConnect help - Eoussama - 06.07.2017

Quote:
Originally Posted by Slavica
Посмотреть сообщение
I copy pasted it because I rly dont need to know how it works,I just need it for my server...
aren't you ashamed of yourself? I honestly won't play on a server that's owned by someone who doesn't know what he's doing, I don't know if it's just me but I got so triggered on what you said, go learn to script and do yourself and your community a favor


Re: OnPlayerConnect help - Slavica - 06.07.2017

Hey you faggot,
As I said,I don't need to know yini,because I'm not using that for my reg/log system nor anything else.
Besides that,I never invited you to join my server.
And I copy pasted it because I have been tryn to figure it out for the last 29 hours and I can't do it anymore.


Re: OnPlayerConnect help - SteSte - 07.07.2017

Quote:
Originally Posted by Slavica
Посмотреть сообщение
I have no idea how to make level/payday system so I found a tutorial on the internet...
Anyways...I copy pasted it because I rly dont need to know how it works,I just need it for my server...
It had 5 errors,I fixed them and now it all works fine.
And here comes the problem...

OnPlayerConnect is suppose to load the level and the exp of the player from the file,the file that was created on OnPlayerDisconnect...The guy who did the tutorial didnt do it and I have no idea how to use yini.

Please help me,I have no idea what am I suppose to add on OnPlayerConnect.

link to tut: https://sampforum.blast.hk/showthread.php?tid=377207
I replied to the original


Re: OnPlayerConnect help - DTV - 07.07.2017

Quote:
Originally Posted by Slavica
Посмотреть сообщение
Hey you faggot,
As I said,I don't need to know yini,because I'm not using that for my reg/log system nor anything else.
Besides that,I never invited you to join my server.
And I copy pasted it because I have been tryn to figure it out for the last 29 hours and I can't do it anymore.
Seems like you think insults are the answer to honest criticism, most of the people who'll look at this will think the same exact thing that Eoussama said. Taking code you don't understand and throwing it in your script is rarely ever going to work, so you should just look at the code and see what you can do with it rather than just paste it into your script and assume it'll work.


Re: OnPlayerConnect help - SteSte - 07.07.2017

Quote:
Originally Posted by DTV
Посмотреть сообщение
Seems like you think insults are the answer to honest criticism, most of the people who'll look at this will think the same exact thing that Eoussama said. Taking code you don't understand and throwing it in your script is rarely ever going to work, so you should just look at the code and see what you can do with it rather than just paste it into your script and assume it'll work.
Yeah I agree, when I'm reading a tutorial, I try to learn, I don't like to copy and paste because I don't always like the way others do things, for example the person might have

Код:
new Dieall = 0;

public OnPlayerSpawn(playerid)
{

SetPlayerHealth(playerid, Dieall);
return 1; 

     }
While I want mine neat, like this
Код:
public OnPlayerSpawn(playerid)
{
    new killall = 0;
    SetPlayerHealth(playerid, killall);
    return 1; 

}
See? I want my code neat and understandable,
so I don't paste I read and understand.


Re: OnPlayerConnect help - DTV - 07.07.2017

Quote:
Originally Posted by Heroleo911003
Посмотреть сообщение
Yeah I agree, when I'm reading a tutorial, I try to learn, I don't like to copy and paste because I don't always like the way others do things, for example the person might have

Код:
new Dieall = 0;

public OnPlayerSpawn(playerid)
{

SetPlayerHealth(playerid, Dieall);
return 1; 

     }
While I want mine neat, like this
Код:
public OnPlayerSpawn(playerid)
{
    new killall = 0;
    SetPlayerHealth(playerid, killall);
    return 1; 

}
See? I want my code neat and understandable,
so I don't paste I read and understand.
Exactly. It's sad to say but there's too many people who don't want to take the time and effort to learn, they just want to have a server to (presumably) make money and/or have a power trip as a server owner.


Re: OnPlayerConnect help - Slavica - 07.07.2017

It will work.It works.
I just dont understand how to get the keys from the file that was created on OnPlayerDiscconect because I have no clue how to use yini.
And how would you possibly make money off samp?
No one is going to play on my server anyways,I just created it for myself and for my 7 friends.
If someone comes,good, but no ono will come because no one plays samp anymore.


Re: OnPlayerConnect help - Slavica - 07.07.2017

Thanks Heroleo911003 rep +