OnPlayerConnect help
#1

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
Reply
#2

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.

Reply
#3

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
Reply
#4

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.
Reply
#5

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
Reply
#6

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.
Reply
#7

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.
Reply
#8

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.
Reply
#9

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.
Reply
#10

Thanks Heroleo911003 rep +
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)