Can someone help me fix those errors for me? -
maikel saliba - 29.08.2011
Hello, i'm trying to make vehicle for VIP's only, but i got some problems.
I added "new VIPCars"
And under SetGameModeInit()
VIPCars = CreateVehicle(522,1511.4296,-1468.1578,9.0694,269.7784,3,

;
and under OnPlayerEnterVehicle
{
if(VIPCars)
{
If (PlayerInfo[playerid][pVIP] == 1)
{
return 1;
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, colour, "You are not a VIP");
}
return 1;
}
And then i get 26 errors does someone knows what's wrong with this?
Re: Can someone help me fix those errors for me? -
IceCube! - 29.08.2011
Post the errors please?
Plus what I posted to him wasnt FULL code so post what you put in the GM so far -.-
Re: Can someone help me fix those errors for me? -
maikel saliba - 29.08.2011
Quote:
Originally Posted by IceCube!
Post the errors please?
Plus what I posted to him wasnt FULL code so post what you put in the GM so far -.-
|
what is the full code then?
Re: Can someone help me fix those errors for me? -
WLSF - 29.08.2011
are not errors,this bugs are only when you abuse certain signs. type "{" "}"
Re: Can someone help me fix those errors for me? -
IceCube! - 29.08.2011
Quote:
Originally Posted by Willian_Luigi
are not errors,this bugs are only when you abuse certain signs. type "{" "}"
|
I LOL'd at this post how do you know its the implement errors he may have so meny things wrong with it it may = 26
plus im not creating a full VIP system pst what you have in your gamemode that i made for and you copyed and i will tell you where to add bits to make it work no errors no help
Re: Can someone help me fix those errors for me? -
maikel saliba - 29.08.2011
I added this..
Code:
if(VIPCars)
{
if (PlayerInfo[playerid][pVIP] == 1)
{
return 1;
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, colour, "You are not a VIP");
}
return 1;
}
Re: Can someone help me fix those errors for me? -
WLSF - 29.08.2011
Try this
pawn Код:
public VIPCars()
{
if(carid == X)
{
return 1;
}
}
OnPlayerEnterVehicle
pawn Код:
if(VIPCars)
{
if(PlayerInfo[playerid][pVip] <= 0)
{
SendClientMessage(playerid, colour, "You are not a VIP");
RemovePlayerFromVehicle(playerid);
return 1;
}
}
Re: Can someone help me fix those errors for me? -
maikel saliba - 29.08.2011
There is no "public (vipcars)"
Re: Can someone help me fix those errors for me? -
Davz*|*Criss - 29.08.2011
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.
Re: Can someone help me fix those errors for me? -
maikel saliba - 29.08.2011
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;
}