Problem - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem (
/showthread.php?tid=154319)
Problem -
RatHack - 13.06.2010
HI!
anyone know what is the solution of this error of complie?
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\filterscri pts\PrivCar.pwn(32) : error 010: invalid function or declaration
Re: Problem -
Cameltoe - 13.06.2010
post the code. remeber to use the "code" tags!
Re: Problem -
RatHack - 13.06.2010
Код:
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\filterscripts\PrivCar.pwn(27) : warning 217: loose indentation
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\filterscripts\PrivCar.pwn(29) : warning 217: loose indentation
C:\Documents and Settings\Propietario\Escritorio\SAAAAMP\filterscripts\PrivCar.pwn(51) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Warnings.
and with that i loose one hydra. know how solucione it?
Re: Problem -
Cameltoe - 13.06.2010
I ment:
let me see the source of PrivCar.pwn
Re: Problem -
RatHack - 13.06.2010
all what is in PrivCar.pwn ?
Re: Problem -
Cameltoe - 13.06.2010
Yes, and put it in the code tag.
like this:
Re: Problem -
RatHack - 13.06.2010
Код:
//Private Car script by Sinbad
//Please dont remove the credits
#include <a_samp>
//cars
new damoncar;
//icons
//colors
#define red 0xFF0000AA
#define green 0x33FF33AA
#define yellow 0xFFFF00AA
public OnFilterScriptInit()
{
print("************************************");
print("* *");
print("* ----------------------- *");
print("* | Private Cars V 1.0 | *");
print("* ----------------------- *");
print("* By Sinbad *");
print("* *");
print("************************************");
damoncar = AddStaticVehicle(520,2193.9146,1674.6368,21.0974,195.8500,0,0); // hydra3333
damoncar = AddStaticVehicle(520,2173.7791,1686.2629,21.0819,179.0718,0,0);
return 1;
}
public OnPlayerStateChange(playerid,newstate, oldstate)
{
new vehicleid = GetPlayerVehicleID(playerid);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof pname);
if (newstate == PLAYER_STATE_DRIVER)
{
if (vehicleid == damoncar)
{
if(strcmp(pname,"RAT",true) ==0)
{
{
SendClientMessage(playerid,green,"Welcome back to your private vehicle Admin RAT");
}
return 1;
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,red,"This PRIVATE Vehicle belongs to RAT, you cannot drive this vehicle");
}
}
}
return 1;
}
//End of [D0K]D4mOn's private vehicle
//Start New private vehicle here
//info icons
public OnGameModeInit()
{
CreatePickup(1239, 1, 2167.8835, 1028.9905, 10.9766, -1);
return 1;
}
//End of icons
//what the icons say
public OnPlayerPickUpPickup(playerid, pickupid)
{
SendClientMessage(playerid,yellow,"This is a private vehicle");
return 1;
}
Re: Problem -
Cameltoe - 13.06.2010
The only errors i get with that script is Bad indentation..
Re: Problem -
RatHack - 13.06.2010
yes, but when i join in tha server the one of the hydras arent locked only for me!
Re: Problem -
Cameltoe - 13.06.2010
The car isnt locked? or is locked only for you? i can test it.. just a sec.