Having trouble opening a vehicles hood. (Wil +rep) - 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: Having trouble opening a vehicles hood. (Wil +rep) (
/showthread.php?tid=401764)
Having trouble opening a vehicles hood. (Wil +rep) -
Arnoo - 23.12.2012
Hello , im trying to figure out how I open a vehicles hood.
So I went inside the wonderfull lands of Pawno and got stuck at this error.
If you would be that friendly to help me.
I'd be thankfull
My error
Код:
C:\Users\Arno\Desktop\CLRP\GameModes\GLRP.pwn(31486 -- 31487) : error 076: syntax error in the expression, or invalid function call
Код:
if(strcmp(cmd, "/hood", true) == 0)
{
new vid;
new engine,lights,alarm,doors,bonnet,boot,objective;
vid = GetPlayerVehicleID
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,lights,alarm,doors,1,boot,objective);
}
Re: Having trouble opening a vehicles hood. (Wil +rep) -
[HiC]TheKiller - 23.12.2012
Should be
pawn Код:
vid = GetPlayerVehicleID(playerid);
.
Re: Having trouble opening a vehicles hood. (Wil +rep) -
Arnoo - 23.12.2012
+Rep
Re: Having trouble opening a vehicles hood. (Wil +rep) -
Faisal_khan - 24.12.2012
You can't rep until you achieve 50+ posts.