#1

guys tell me what to do .. i want t oadd cars for FBI ... i change fbi base pickups now cars... i made nwe cars like

Код:
new fbinewcar;
then everything

Код:
	if(newcar >= fbinewcar[0] && newcar <= fbinewcar[8])
		{
		    if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2) { }
			else
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "Ar Xar F.B.I Agenti!");
				RemovePlayerFromVehicleRich(playerid);
			}
		}
then i added some cars .. but i got warnings and i think it big size and i made 2 cars

Код:
    fbinewcar[0] = AddStaticVehicleEx(490,942.6639,-1754.0256,13.6750,173.7471,0,0); //Police Maverick
	fbinewcar[1] = AddStaticVehicleEx(490,939.0532,-1753.6750,13.6703,174.7446,0,0); //FBI Rancher
and im getting this error always .. if i add 2 cars i got 2 warnings if 3 car 3 warning and so so.


Код:
C:\Documents and Settings\Holly-\Desktop\Nigh\gamemodes\NightGame.pwn(59134) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Holly-\Desktop\Nigh\gamemodes\NightGame.pwn(59135) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664
Please Help Me
Reply
#2

Change the cars to:
Код:
fbinewcar[0] = AddStaticVehicleEx(490,942.6639,-1754.0256,13.6750,173.7471,0,0,99999); //Police Maverick
	fbinewcar[1] = AddStaticVehicleEx(490,939.0532,-1753.6750,13.6703,174.7446,0,0,99999); //FBI Rancher
I did that cuz AddStaticVehicleEx have respawn_dealy too.
From the wiki:
Quote:

respawn_delay The delay until the car is respawned without a driver, in seconds.

Reply
#3

Quote:
Originally Posted by UnknownOwner
Посмотреть сообщение
Change the cars to:
Код:
fbinewcar[0] = AddStaticVehicleEx(490,942.6639,-1754.0256,13.6750,173.7471,0,0,99999); //Police Maverick
	fbinewcar[1] = AddStaticVehicleEx(490,939.0532,-1753.6750,13.6703,174.7446,0,0,99999); //FBI Rancher
I did that cuz AddStaticVehicleEx have respawn_dealy too.
From the wiki:
it compiled but .. i can drive that car ..and im not fbi .. i want that only fbi ca ndriver it .. understnad?

&&
i add more cars and got same error .. what do you do .. ?
Reply
#4

Try this:
Код:
	if(newcar >= fbinewcar[0] && newcar <= fbinewcar[8])
		{
		    if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2) 
                       }
			else
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "Ar Xar F.B.I Agenti!");
				RemovePlayerFromVehicleRich(playerid);
			}
		}
Reply
#5

Quote:
Originally Posted by UnknownOwner
Посмотреть сообщение
Try this:
Код:
	if(newcar >= fbinewcar[0] && newcar <= fbinewcar[8])
		{
		    if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2) 
                       }
			else
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "Ar Xar F.B.I Agenti!");
				RemovePlayerFromVehicleRich(playerid);
			}
		}
Errosss
Код:
C:\Documents and Settings\Holly-\Desktop\Nigh\gamemodes\NightGame.pwn(23643) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Holly-\Desktop\Nigh\gamemodes\NightGame.pwn(23643 -- 23644) : warning 215: expression has no effect
C:\Documents and Settings\Holly-\Desktop\Nigh\gamemodes\NightGame.pwn(23644) : error 001: expected token: ";", but found "else"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Reply
#6

bro everything i completed.. thanks for helping +rep
Reply
#7

Quote:
Originally Posted by CroxL
Посмотреть сообщение
bro everything i completed.. thanks for helping +rep
Ye i forgot to add a ; XD Anyway if thx.
Reply
#8

omg 2:@@ i added some more cars and everybody can drive it :@@@
Reply
#9

Quote:
Originally Posted by CroxL
Посмотреть сообщение
omg 2:@@ i added some more cars and everybody can drive it :@@@
You need to change the
Код:
fbinewcar[8]
to the total cars you have like if you have 15 cars, change the
Код:
fbinewcar[8]
to
Код:
fbinewcar[16
Ok?


Quote:

This forum requires that you wait 240 seconds between posts. Please try again in 81 seconds.

Reply
#10

Quote:
Originally Posted by UnknownOwner
Посмотреть сообщение
You need to change the
Код:
fbinewcar[8]
to the total cars you have like if you have 15 cars, change the
Код:
fbinewcar[8]
to
Код:
fbinewcar[16
Ok?
big thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)