Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

warning 215: expression has no effect

$
0
0
Code:

C:\Users\Slavegod\Desktop\GMDP\gamemodes\GRP.pwn(6055) : error 012: invalid function call, not a valid address
C:\Users\Slavegod\Desktop\GMDP\gamemodes\GRP.pwn(6055) : warning 215: expression has no effect
C:\Users\Slavegod\Desktop\GMDP\gamemodes\GRP.pwn(6055) : warning 215: expression has no effect
C:\Users\Slavegod\Desktop\GMDP\gamemodes\GRP.pwn(6055) : warning 215: expression has no effect
C:\Users\Slavegod\Desktop\GMDP\gamemodes\GRP.pwn(6055) : warning 215: expression has no effect
C:\Users\Slavegod\Desktop\GMDP\gamemodes\GRP.pwn(6055) : warning 215: expression has no effect
C:\Users\Slavegod\Desktop\GMDP\gamemodes\GRP.pwn(6055) : warning 215: expression has no effect
C:\Users\Slavegod\Desktop\GMDP\gamemodes\GRP.pwn(6055) : error 001: expected token: ";", but found ")"
C:\Users\Slavegod\Desktop\GMDP\gamemodes\GRP.pwn(6055) : error 029: invalid expression, assumed zero
C:\Users\Slavegod\Desktop\GMDP\gamemodes\GRP.pwn(6055) : fatal error 107: too many error messages on one line

>:( >:( >:( >:(

Code:

stock placeFoodTrayOnGround(playerid, type)
{
    //spawn the object on the ground
    new Float: fX, Float: fY, Float: fZ, Float: fA;
        GetXYInFrontOfPlayer(playerid, fX, fY, fZ, fA, 1.0); //6055 the fuck is wrong here?

        if(type == 1)
        { //pizza box
            foodTray[foodTrays][0] = CreateDynamicObject(2860, fX, fY, fZ -1.0, 0.0, 0.0, fA); //object id
            foodTray[foodTrays][1] = TRAY_TYPE_PIZZA; //set tray type to pizza
            foodTray[foodTrays][2] = PIZZA_AMOUNT; //set the amount of food on this tray to pizza amount
            foodTray[foodTrays][3] = TRAY_RESPAWN_TIME;
                foodTray[foodTrays][4] = TRAY_NO_POISONED;

        } else if(type == 2)
        { //clucknbell tray
            foodTray[foodTrays][0] = CreateDynamicObject(2217, fX, fY, fZ -0.93, -27.000000, 24.000000, fA +75.0); //fA -118
            foodTray[foodTrays][1] = TRAY_TYPE_CHICKEN;
            foodTray[foodTrays][2] = CHICKEN_AMOUNT;
            foodTray[foodTrays][3] = TRAY_RESPAWN_TIME;
                foodTray[foodTrays][4] = TRAY_NO_POISONED;

        } else if(type == 3)
        { //burgershot tray
            foodTray[foodTrays][0] = CreateDynamicObject(2212, fX, fY, fZ -0.93, -27.000000, 24.000000, fA +75.0); //fA -118
            foodTray[foodTrays][1] = TRAY_TYPE_BURGER;
            foodTray[foodTrays][2] = BURGER_AMOUNT;
            foodTray[foodTrays][3] = TRAY_RESPAWN_TIME;
                foodTray[foodTrays][4] = TRAY_NO_POISONED;

        } else if(type == 4)
        { //donut tray
            foodTray[foodTrays][0] = CreateDynamicObject(2222, fX, fY, fZ -0.90, 0.0, 0.0, fA);
            foodTray[foodTrays][1] = TRAY_TYPE_DONUT;
            foodTray[foodTrays][2] = DONUT_AMOUNT;
            foodTray[foodTrays][3] = TRAY_RESPAWN_TIME;
                foodTray[foodTrays][4] = TRAY_NO_POISONED;
        }
        foodTrays++;
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>