[Help] OnPlayerPickupPickup
#1

why when sometimers i'm pickuping the "ServerHelp" pickup
i get the result of "Pot" pickup?

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Pot) PotWinner(playerid, PotReward);

else if(pickupid == ServerHelp)
{
new string[256], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), ".( двтъ (мтжшд бщшъ - 1 ,%s щмен", name);
SCM(playerid, ADMIN, string);
SCM(playerid, GREEN, "щшъ жд дечн мотп дчмап ееаш, бщшъ жд йтшле");
SCM(playerid, GREEN, "фтймейеъ мчмап, мчмарйн щроцайн бщмен айъре");
SCM(playerid, GREEN, ".ефтймейеъ вгемеъ щм щзчрй чдймъ ейвййос");
SCM(playerid, GREEN, "./Help - мтжшд ресфъ, /Credits - чшгйийн");
}

return 1;
}
Reply
#2

Do you use CreatePickup? If not, you should.
Reply
#3

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == Pot)
    {
    PotWinner(playerid, PotReward);
    }
    else
    if(pickupid == ServerHelp)
    {
        new string[256], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), ".( двтъ (мтжшд бщшъ - 1 ,%s щмен", name);
        SCM(playerid, ADMIN, string);
        SCM(playerid, GREEN, "щшъ жд дечн мотп дчмап ееаш, бщшъ жд йтшле");
        SCM(playerid, GREEN, "фтймейеъ мчмап, мчмарйн щроцайн бщмен айъре");
        SCM(playerid, GREEN, ".ефтймейеъ вгемеъ щм щзчрй чдймъ ейвййос");
        SCM(playerid, GREEN, "./Help - мтжшд ресфъ, /Credits - чшгйийн");
    }

    return 1;
}
Reply
#4

doesnt work.. i still get the other one message..
Reply
#5

Are you using CreatePickup? Try this though.

pawn Код:
if(pickupid == Pot)
{
    PotWinner(playerid, PotReward);
    return 1;
}
if(pickupid == ServerHelp)
{
    new string[256], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), ".( двтъ (мтжшд бщшъ - 1 ,%s щмен", name);
    SCM(playerid, ADMIN, string);
    SCM(playerid, GREEN, "щшъ жд дечн мотп дчмап ееаш, бщшъ жд йтшле");
    SCM(playerid, GREEN, "фтймейеъ мчмап, мчмарйн щроцайн бщмен айъре");
    SCM(playerid, GREEN, ".ефтймейеъ вгемеъ щм щзчрй чдймъ ейвййос");
    SCM(playerid, GREEN, "./Help - мтжшд ресфъ, /Credits - чшгйийн");
    return 1;
}
Offtopic:Look at the end of the url for this topic.
Reply
#6

doesn't work, and where is the url
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)