Help me fix it.
#1

Well, please remove this thread, I know how to work with pawno now. please remove it.
Reply
#2

You need to update your server to the latest release.

http://www.sa-mp.com/download.php
Reply
#3

What? did not understand what to do.......

EDIT: Okay,I check it..
Reply
#4

Quote:
Originally Posted by AcTopNN
Посмотреть сообщение
What? did not understand what to do.......
Download the latest server package and recompile your script with the new includes.
Reply
#5

Quote:
Originally Posted by Stigg
Посмотреть сообщение
Download the latest server package and recompile your script with the new includes.
+1.

However, from the look of your file paths, you already have downloaded and are trying to compile with 0.3c includes?
Reply
#6

Ok, it works, thanks
But now it writes to me "Only CJ Skin"
How do I change it to be all skins?
Reply
#7

Quote:
Originally Posted by AcTopNN
Посмотреть сообщение
Ok, it works, thanks
But now it writes to me "Only CJ Skin"
How do I change it to be all skins?
Use this in your main gamemode:
pawn Код:
public OnGameModeInit()
{
    for(new i = 0; i < 299; i++)
    {
        if(IsValidSkin(i))
        {
            AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
        }
    }
    return 1;
}
With this stock.
pawn Код:
stock IsValidSkin(SkinID)
{
    if(0 < SkinID < 300)
    {
        switch(SkinID)
        {
            case 3..6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return 0;
        }
        return 1;
    }
    return 0;
}
Gives you all valid skins.
Reply
#8

Quote:
Originally Posted by Stigg
Посмотреть сообщение
Use this:
pawn Код:
public OnGameModeInit()
{
    for(new i = 0; i < 299; i++)
    {
        if(IsValidSkin(i))
        {
            AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
        }
    }
    return 1;
}
With this stock.
pawn Код:
stock IsValidSkin(SkinID)
{
    if(0 < SkinID < 300)
    {
        switch(SkinID)
        {
            case 3..6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return 0;
        }
        return 1;
    }
    return 0;
}
Gives you all valid skins.
What i need edit dude?
Reply
#9

Quote:
Originally Posted by AcTopNN
Посмотреть сообщение
What i need edit dude?
Put this under your OnGameModeInit()

pawn Код:
for(new i = 0; i < 299; i++)
    {
        if(IsValidSkin(i))
        {
            AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
        }
    }
And this at the bottom of your script, not in a callback.
pawn Код:
stock IsValidSkin(SkinID)
{
    if(0 < SkinID < 300)
    {
        switch(SkinID)
        {
            case 3..6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return 0;
        }
        return 1;
    }
    return 0;
}
Reply
#10

Quote:
Originally Posted by Stigg
Посмотреть сообщение
Put this under your OnGameModeInit()

pawn Код:
for(new i = 0; i < 299; i++)
    {
        if(IsValidSkin(i))
        {
            AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
        }
    }
And this at the bottom of your script, not in a callback.
pawn Код:
stock IsValidSkin(SkinID)
{
    if(0 < SkinID < 300)
    {
        switch(SkinID)
        {
            case 3..6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return 0;
        }
        return 1;
    }
    return 0;
}
I do not understand the script
Can you explain to me where it is "My OnGameModeInit?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)