[HELP]with this Error . .
#1

hey guys im using an Vehicle tuning Fs by someone on samp forums . . i dont remember his name xD
then im changing the Commands from strcmp to Zcmd . .

pawn Код:
CMD:tune1(playerid, params[])
{
    new playerstate = GetPlayerState(playerid);
    if(playerstate == PLAYER_STATE_DRIVER)
    {
        return ModCar(playerid);
    }
    else
    {
        return SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
        }
    }
    return 1;
}
then i get this
Код:
error 010: invalid function or declaration
can someone help me with this Error ? Rep+
Reply
#2

you have an extra closing brace
Reply
#3

pawn Код:
CMD:tune1(playerid, params[])
{
    new playerstate = GetPlayerState(playerid);
    if(playerstate == PLAYER_STATE_DRIVER)
    {
        return ModCar(playerid);
    }
    else return SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
    return 1;
}
Reply
#4

i got this warning . .
Код:
warning 225: unreachable code
Reply
#5

pawn Код:
CMD:tune1(playerid, params[])
{
    new playerstate = GetPlayerState(playerid);
    if(playerstate == PLAYER_STATE_DRIVER)
    {
        ModCar(playerid);
    }
    else return SendClientMessage(playerid, COLOR_RED, "[ERROR] You cannot modify/tune a car unless you are the driver.");
    return 1;
}
remove return in ModCar(playerid)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)