errors
#4

pawn Код:
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;
}

pawn Код:
new Float:WtfSpawns[19][3] = { //You added floats down there without using Float: here
    {2796.0310,5115.2124,33.2604},
    {2788.4160,4949.3735,16.6528},
    {2882.0957,4950.8389,31.5787},
    {2789.2773,5000.6421,15.2726},
    {2865.3577,4956.7563,14.4105},
    {2843.2036,4964.4531,9.8290},
    {2803.5474,4953.8428,9.8290},
    {2804.0698,4957.8193,9.8290},
    {2785.4670,4939.6377,16.3765},
    {2788.4033,4949.2920,16.6528},
    {2799.2397,4988.4355,15.2726},
    {2777.0896,5016.3462,14.1376},
    {2774.7786,5049.4385,16.8952},
    {2796.4375,5107.6763,25.3056},
    {2794.3215,5101.8052,33.2089},
    {2848.1265,5116.3066,49.0261},
    {2903.1414,5117.0840,19.9178},
    {2908.1658,5100.4316,21.8698},
    {2905.4446,5077.5786,17.4287}
};

pawn Код:
CMD:wtf(playerid)
{
    new Random = random(sizeof(MdmSpawns));
    new r = random(sizeof(RandomPistol));
    new r1 = random(sizeof(RandomAssault));
    new r3 = random(sizeof(RandomSub));
    DeathMatch[playerid] = 1;
    Wtf[playerid] = 1; //well apparently Wtf[MAX_PLAYERS] isn't declared. Maybe it was WTF or wtf instead Wtf? (capitalisation is important)
    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);
    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: 2 Guest(s)