[ERROR] vehicleid
#1

Код:
C:\gf.pwn(4953) : error 017: undefined symbol "vehicleid"
C:\gf.pwn(4958) : error 017: undefined symbol "vehicleid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
    {
        if(Engine[vehicleid] == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, "* Press 'N' to turn on vehicle *");
            return 1;
        }
        else if(Engine[vehicleid] == 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "* Engine alrealy running *");
        }
    }
Reply
#2

pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
Add that below the first bracket!
Reply
#3

Код:
warning 219: local variable "vehicleid" shadows a variable at a preceding level
Reply
#4

That means you already have it in the function, try searching for it using Control & F.
Reply
#5

Quote:
Originally Posted by Luis-
Посмотреть сообщение
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
Add that below the first bracket!
Was hard ?
Reply
#6

Quote:
Originally Posted by gekas
Посмотреть сообщение
Was hard ?
Huh?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)