Updating Skill
#1

fixed
Reply
#2

Because the player doesn't have any of those amounts of TotalRobs?
Reply
#3

........................
Reply
#4

Show us where do you use it. Also you can write this way, which it's easier for my opinion.

pawn Код:
switch(pinfo[playerid][TotalRobs])
{
    case 5, 10, 20, 25, 30, 35:
    {
        pinfo[playerid][Robskill]++;
    }
}
Edit: Show us the loading too, maybe you are not loading it correctly.
Reply
#5

Quote:
Originally Posted by ]Rafaellos[
Посмотреть сообщение
Show us where do you use it. Also you can write this way, which it's easier for my opinion.

pawn Код:
switch(pinfo[playerid][TotalRobs])
{
    case 5, 10, 20, 25, 30, 35:
    {
        pinfo[playerid][Robskill]++;
    }
}
indeed its easier but anyway i am not using it anywhere should i use it OnPlayerUpdate or to every command i use for robberies?
Reply
#6

Is not going to be a good idea if you will use it under OnPlayerUpdate, it's pointless too. Use it after a player finish a robbery.
Reply
#7

Quote:
Originally Posted by ]Rafaellos[
Посмотреть сообщение
Is not going to be a good idea if you will use it under OnPlayerUpdate, it's pointless too. Use it after a player finish a robbery.
I see so on the timer i use for robbery finish?
Reply
#8

Yeap. The TotalRobs variable will change only after a player finish a robbery. That's why you don't need it under OnPlayerUpdate.
Reply
#9

not working
Reply
#10

Are you sure TotalRobs variable is loaded correctly?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)