vehicle id help
#1

hey please fix this error

C:\Users\user\Desktop\Desktop files\Server\filterscripts\ViPSystem.pwn(4 : error 017: undefined symbol "vehicleid"
what should i do?
Reply
#2

define vehicleid

But we cant fix your code because we dont have it
Reply
#3

write this code before your error line new vehicleid = GetPlayerVehicleID(playerid);
Reply
#4

pawn Код:
if (strcmp("/Nitro", cmdtext, true, 10) == 0)
    {
        if(IsPlayerVipMember(playerid,2))
        if (vehicleid == vehicle)
        {
             AddVehicleComponent(vehicle, 1010); // Nitro
             SendClientMessage(playerid,0x33AA33AA, "ViP(CMD) You have added nitro to your vehicle.");
        }
        else
        {
             SendClientMessage(playerid,0xAA3333AA, "Error: You need to be ViP Gold, To use this cmd!");
        }
        return 1;
    }
C:\Users\user\Desktop\Desktop files\Server\filterscripts\ViPSystem.pwn(62) : error 017: undefined symbol "vehicleid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.
Reply
#5

fix it please
Reply
#6

pawn Код:
if (strcmp("/Nitro", cmdtext, true, 10) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerVipMember(playerid,2))
if (vehicleid == vehicle)
{
AddVehicleComponent(vehicle, 1010); // Nitro
SendClientMessage(playerid,0x33AA33AA, "ViP(CMD) You have added nitro to your vehicle.");
}
else
{
SendClientMessage(playerid,0xAA3333AA, "Error: You need to be ViP Gold, To use this cmd!");
}
return 1;
}
Reply
#7

thanks steven
Reply
#8

welcome
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)