Can someone help me fix those errors for me?
#10

Quote:
Originally Posted by Davz*|*Criss
Посмотреть сообщение
Try this:

pawn Код:
if(VIPCars)
{
    if(!PlayerInfo[playerid][pVIP] == 1) return SendClientMessage(playerid, -1, "You are not an VIP.");
    if(PlayerInfo[playerid][pVIP] == 1)
    {
         SendClientMessage(playerid, -1, "You are entering this vehicle as VIP.");
         return 1;
    }
    return 0;
}
Untested.
I get this error.

C:\Users\176\Documents\NRRP\gamemodes\NRRP.pwn(371 5) : error 010: invalid function or declaration
C:\Users\176\Documents\NRRP\gamemodes\NRRP.pwn(371 7) : error 010: invalid function or declaration
C:\Users\176\Documents\NRRP\gamemodes\NRRP.pwn(371 : error 010: invalid function or declaration
C:\Users\176\Documents\NRRP\gamemodes\NRRP.pwn(372 1) : error 010: invalid function or declaration
C:\Users\176\Documents\NRRP\gamemodes\NRRP.pwn(372 3) : error 010: invalid function or declaration
C:\Users\176\Documents\NRRP\gamemodes\NRRP.pwn(154 94) : warning 219: local variable "cookies" shadows a variable at a preceding level
C:\Users\176\Documents\NRRP\gamemodes\NRRP.pwn(160 95) : warning 202: number of arguments does not match definition
C:\Users\176\Documents\NRRP\gamemodes\NRRP.pwn(318 16) : warning 202: number of arguments does not match definition
C:\Users\176\Documents\NRRP\gamemodes\NRRP.pwn(341 63) : warning 202: number of arguments does not match definition
C:\Users\176\Documents\NRRP\gamemodes\NRRP.pwn(160 95) : warning 204: symbol is assigned a value that is never used: "VIPCars"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

(3715)if(VIPCars)
{
(371 if(!PlayerInfo[playerid][pVIP] == 1) return SendClientMessage(playerid, -1, "You are not an VIP.");
(3719) if(PlayerInfo[playerid][pVIP] == 1)
{
(3721) SendClientMessage(playerid, -1, "You are entering this vehicle as VIP.");
return 1;
(3723) }
return 0;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)