Pawno Errors
#1

pawn Код:
C:\Documents and Settings\Administrator\Desktop\TARGOVISHTE ROLEPLAY\filterscripts\truck.pwn(133) : warning 217: loose indentation
C:\Documents and Settings\Administrator\Desktop\TARGOVISHTE ROLEPLAY\filterscripts\truck.pwn(133) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\TARGOVISHTE ROLEPLAY\filterscripts\truck.pwn(133) : error 004: function "OnPlayerPickUpPickup" is not implemented
C:\Documents and Settings\Administrator\Desktop\TARGOVISHTE ROLEPLAY\filterscripts\truck.pwn(135) : error 017: undefined symbol "pickupid"
C:\Documents and Settings\Administrator\Desktop\TARGOVISHTE ROLEPLAY\filterscripts\truck.pwn(139) : error 017: undefined symbol "pickupid"
C:\Documents and Settings\Administrator\Desktop\TARGOVISHTE ROLEPLAY\filterscripts\truck.pwn(144) : error 030: compound statement not closed at the end of file (started at line 116)
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if((truckjobrunning) == 1)
    {
        truckjobrunning = 0;
        SendClientMessage(playerid, COLOR_RED, "You left your truck behind, get in again if you want to continue your job.");

    }else if((truckjobrunning) == 0){
    if((flyjobrunning) == 1)
    {
        flyjobrunning = 0;
        SendClientMessage(playerid, COLOR_RED, "You left the plane, you failed the job.");

    }else if((flyjobrunning) == 0){

        //Nothing
 }
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == info)
    {
    GameTextForPlayer(playerid, "~g~Welcome at the Truck Driver job, use /truckinfo to know more", 3000, 3);
    }
    if(pickupid == info)
    {
    GameTextForPlayer(playerid, "~g~Welcome at the Fly job, use /flyinfo to know more", 3000, 3);
    }
}
Reply
#2

The OnPlayerPickUpPickup should return a value...
Also, Try IsPlayerInRangeOfPoint instead of pickupid == something.
Reply
#3

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if((truckjobrunning) == 1)
    {
        truckjobrunning = 0;
        SendClientMessage(playerid, COLOR_RED, "You left your truck behind, get in again if you want to continue your job.");
    }
    else if((truckjobrunning) == 0)
    {
        if((flyjobrunning) == 1)
        {
            flyjobrunning = 0;        
            endClientMessage(playerid, COLOR_RED, "You left the plane, you failed the job.");
        }
        else if((flyjobrunning) == 0)
        {        //Nothing }}
        }
    }
    return 1;
}
You were missing a bracket or two and you forgot to return.
Reply
#4

pickupid is not definded.
Reply
#5

Quote:
Originally Posted by Firo
Посмотреть сообщение
pickupid is not definded.
Pickup ID wasn't defined as he wasn't returning a value, your answer isn't valid.
Reply
#6

Quote:
Originally Posted by IceCube!
Посмотреть сообщение
Pickup ID wasn't defined as he wasn't returning a value, your answer isn't valid.
I just saw that now, you right.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)