SA-MP Forums Archive
Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error (/showthread.php?tid=523220)



Error - Kaaashi - 01.07.2014

C:\Users\Administrator\Desktop\Marx Realty Roleplay Edited\gamemodes\PRRP.pwn(1055) : error 010: invalid function or declaration

Код:
//SWEEER VEHICLES
1055	SweeperVehicles[1] = AddStaticVehicleEx(574,2193.00000000,-1984.80004883,13.30000019,90.00000000, 1, 1, 120);
	SweeperVehicles[2] = bAddStaticVehicleEx(574,2192.89990234,-1987.59997559,13.30000019,90.00000000, 1, 1, 120);
	SweeperVehicles[3] = bAddStaticVehicleEx(574,2193.00000000,-1990.30004883,13.30000019,90.00000000, 1, 1, 120);
	SweeperVehicles[4] = bAddStaticVehicleEx(574,2193.19995117,-1993.30004883,13.30000019,90.00000000, 1, 1, 120);
	SweeperVehicles[5] = bAddStaticVehicleEx(574,2193.30004883,-1996.30004883,13.30000019,90.00000000, 1, 1, 120);
	SweeperVehicles[6] = bAddStaticVehicleEx(574,2193.39990234,-2000.09997559,13.30000019,90.00000000, 1, 1, 120);
	SweeperVehicles[7] = bAddStaticVehicleEx(574,2182.60009766,-1996.09997559,13.30000019,320.00000000, 1, 1, 120);
	SweeperVehicles[8] = bAddStaticVehicleEx(574,2181.10009766,-1992.80004883,13.30000019,319.99877930, 1, 1, 120);
	SweeperVehicles[9] = bAddStaticVehicleEx(574,2179.00000000,-1990.59997559,13.30000019,319.99877930, 1, 1, 120);
	SweeperVehicles[10] = bAddStaticVehicleEx(574,2176.39990234,-1988.30004883,13.30000019,319.99877930, 1, 1, 120);
	SweeperVehicles[11] = bAddStaticVehicleEx(574,2173.80004883,-1986.30004883,13.30000019,319.99877930, 1, 1, 120);
	SweeperVehicles[12] = bAddStaticVehicleEx(574,2187.50000000,-1976.09997559,13.30000019,180.00000000, 1, 1, 120);
	SweeperVehicles[13] = bAddStaticVehicleEx(574,2184.69995117,-1976.09997559,13.30000019,180.00000000, 1, 1, 120);
	SweeperVehicles[14] = bAddStaticVehicleEx(574,2181.39990234,-1976.00000000,13.30000019,180.00000000, 1, 1, 120);
	SweeperVehicles[15] = bAddStaticVehicleEx(574,2178.39990234,-1975.80004883,13.30000019,180.00000000, 1, 1, 120);
	SweeperVehicles[16] = bAddStaticVehicleEx(574,2174.89990234,-1976.00000000,13.30000019,180.00000000, 1, 1, 120);
	SweeperVehicles[17] = bAddStaticVehicleEx(574,2171.10009766,-1975.80004883,13.30000019,180.00000000, 1, 1, 120);



Re: Error - nmader - 01.07.2014

pawn Код:
bAddStaticVehicleEx
What is bAddStaticVehicleEx?


Re: Error - Kaaashi - 01.07.2014

I just delete the b It's only AddStaticVehicleEx


Re: Error - nmader - 01.07.2014

And you still get errors?


Re: Error - Kaaashi - 01.07.2014

No, But i got new errors,

C:\Users\Administrator\Desktop\Marx Realty Roleplay Edited\gamemodes\PRRP.pwn(62457) : warning 217: loose indentation
C:\Users\Administrator\Desktop\Marx Realty Roleplay Edited\gamemodes\PRRP.pwn(62487) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

Код:
62457 if(PlayerSweeping[i] == 1){
			if (!IsASweeper(GetPlayerVehicleID(i))) {
				PlayerSweeping[i] = 0;
				SweeperTime[i] = 0;
				SendClientMessage(i, COLOR_LIGHTBLUE, "You are no longer Street Sweeping as you've exited the vehicle.");
			}
Код:
62487 if(NewbieTimer[i] > 0)
		{
			NewbieTimer[i]--;
		}
		if(GlobalChatTimer[i] > 0)
		{
			GlobalChatTimer[i]--;
		}
		if(JustReported[i] > 0)
		{
			JustReported[i]--;
		}
		if(TaxiCallTime[i] > 0)
		{
			if(TaxiAccepted[i] < 999)
			{
				if(IsPlayerConnected(TaxiAccepted[i]))
				{
					new Float:X,Float:Y,Float:Z;
					GetPlayerPos(TaxiAccepted[i], X, Y, Z);
					SetPlayerCheckpoint(i, X, Y, Z, 5);
				}
			}
		}



Re: Error - PrivatioBoni - 01.07.2014

Just press tab on line 62487 until the 'if' lines up with the "{" below it.