errors
#6

got a bit of a bug now with onplayerspawn when you forst connect andspawn you spawn in the second dm insteadof the the last postion

Код:
public OnPlayerSpawn(playerid)
{
    new Random = random(sizeof(MdmSpawns));
    new r = random(sizeof(RandomPistol));
    new r1 = random(sizeof(RandomAssault));
    new r2 = random(sizeof(RandomHeavy));
    new r3 = random(sizeof(RandomSub));
    if(MDM[playerid] != 0) {
        SetPlayerPos(playerid, MdmSpawns[Random][0], MdmSpawns[Random][1], MdmSpawns[Random][2]);
        GivePlayerWeapon(playerid, RandomPistol[r][0], RandomPistol[r][1]);
        GivePlayerWeapon(playerid, RandomAssault[r1][0], RandomAssault[r1][1]);
        GivePlayerWeapon(playerid, RandomHeavy[r2][0], RandomHeavy[r2][1]);
        Freeze(playerid, 5000);
    }
    if(WTF[playerid] != 0) // You added a ; to an if instead ) and forgot the {
    {
    SetPlayerPos(playerid, WtfSpawns[Random][0], WtfSpawns[Random][1], WtfSpawns[Random][2]);
    GivePlayerWeapon(playerid, RandomPistol[r][0], RandomPistol[r][1]);
    GivePlayerWeapon(playerid, RandomAssault[r1][0], RandomAssault[r1][1]);
    GivePlayerWeapon(playerid, RandomSub[r3][0], RandomSub[r3][1]);
    Freeze(playerid, 5000);
    }
    else { //not sure but the fix above might fix this as well
        SetPlayerPos(playerid, 405.7959, 2436.9858, 16.5000), SetPlayerInterior(playerid, 0);
    }
    return 1;
}
Reply


Messages In This Thread
errors - by manchestera - 27.11.2011, 16:43
Re: errors - by Kostas' - 27.11.2011, 16:51
Re: errors - by manchestera - 27.11.2011, 16:53
Re: errors - by Gustavob - 27.11.2011, 16:54
Re: errors - by manchestera - 27.11.2011, 16:59
Re: errors - by manchestera - 27.11.2011, 17:14
Re: errors - by Kostas' - 27.11.2011, 17:19
Re: errors - by manchestera - 27.11.2011, 17:36
Re: errors - by manchestera - 27.11.2011, 18:20
Re: errors - by Kostas' - 27.11.2011, 18:52

Forum Jump:


Users browsing this thread: 4 Guest(s)