Good evening, I would like to have help I try to block the experiments on the cards at a certain level. Can you tell me if I forget something or do wrong?
This is a very strange code >< firstly you forgot a } and secondly your return; everywhere Moreover the 2 nd else if is useless just use the first part with the correct values.
Seems you don’t really understand what you are trying to do.
in a nutshell, normally you use a return to return a certain value or object, moreover you only want to use it if you want to go out of the methode. Btw the data type of your methode is void so you actually dont need to return something.
I don’t think this is the code of Zanou or if it is his code you remove most of it. This is a non-sens piece of code. this is what someone who don’t know anything would do. Zanou already added thing to his server so I suppose he know at least how to do a if statement correctly!
Tell me why you should do a bullshit Database when you can do it in Source ?
Cause something like this appears xD
Quote:
Originally Posted by redbull2905
Good evening, I would like to have help I try to block the experiments on the cards at a certain level. Can you tell me if I forget something or do wrong?
At worst you can not just get me the code to know that I use opennos-dev de ciapa
They gave him to you several times, furthermore you could avoid adding some **** and saying that his my "code" . Monkey ..
Code:
public void MapLevelNoExp(ClientSession Session, Int MapId, Int Level)
{
if (Session.CurrentMapInstance.Map.MapId == MapId)
{
if (Session.Character.Level <= Level)
{
return;
}
}
}
They gave him to you several times, furthermore you could avoid adding some **** and saying that his my "code" . Monkey ..
Code:
public void MapLevelNoExp(ClientSession Session, Int MapId, Int Level)
{
if (Session.CurrentMapInstance.Map.MapId == MapId)
{
if (Session.Character.Level <= Level)
{
return;
}
}
}