Problem with pCars - 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: Problem with pCars (
/showthread.php?tid=373613)
Problem with pCars -
UnlimitedFreeroam - 31.08.2012
Hello Everyone,
I'd have one little problem with pCars, i guess it's easy to fix but i don't know the way how to fix it.
Anyways here's the problem:
Quote:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
#if EnableVehicleMsg == true
new string[150];
new modelid = GetVehicleModel(vehicleid);
new car = modelid-400;
format(string, sizeof(string), "~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~>~ ~r~%s ~<~", VehicleNames[car]);
GameTextForPlayer(playerid,string,3000,3);
if (pCars[playerid] > 1 ) DestroyVehicle(pCars[playerid]);
PutPlayerInVehicle(playerid, CreateVehicle(modelid, Float , Float:y, Float:z, Float:angle, color1, color2, respawn_delay), 0);
pCars[playerid] = GetPlayerVehicleID(playerid);
#endif
return 1;
}
|
Pawn Compiler Says:
Quote:
(1333) : error 017: undefined symbol "x"
|
Thanks for the help.
Re: Problem with pCars -
romas3110 - 31.08.2012
Try this..
pawn Код:
new Float:x,Float:y,Float:z;
Re: Problem with pCars -
UnlimitedFreeroam - 31.08.2012
Didn't worked :P
Re: Problem with pCars -
Deal-or-die - 31.08.2012
Did it give you the same error?
Код:
(1333) : error 017: undefined symbol "x"
Where did you add '
pawn Код:
new Float:x,Float:y,Float:z;'
?
Re: Problem with pCars -
Vule. - 31.08.2012
Quote:
Originally Posted by Deal-or-die
Did it give you the same error?
Код:
(1333) : error 017: undefined symbol "x"
Where did you add '
pawn Код:
new Float:x,Float:y,Float:z;'
?
|
-removed-
Re: Problem with pCars -
UnlimitedFreeroam - 31.08.2012
Yes i did that, But i still got that errors..
Re: Problem with pCars -
romas3110 - 31.08.2012
can you show us the errors you get?
Re: Problem with pCars -
UnlimitedFreeroam - 31.08.2012
Quote:
(161) : error 027: invalid character constant (This is where that NEW Float is)
|
Quote:
(1335) : error 017: undefined symbol "angle"
|
This are the bugs
Re: Problem with pCars -
Deal-or-die - 31.08.2012
Quote:
Originally Posted by Vule.
Omfg
|
What is so 'Omfg' worthy of that...?
Please read what I have said
PROPERLY in
ENGLISH before making your
foolish statements.
Quote:
Originally Posted by UnlimitedFreeroam
Yes i did that, But i still got that errors..
|
I wasn't asking you to try adding it, I was asking WHERE you added it and did it give you the same error as before or was it a completely different error?
Re: Problem with pCars -
Vule. - 31.08.2012
Quote:
Originally Posted by Deal-or-die
What is so 'Omfg' worthy of that...?
Please read what I have said PROPERLY in ENGLISH before making your foolish statements.
I wasn't asking you to try adding it, I was asking WHERE you added it and did it give you the same error as before or was it a completely different error?
|
Can you please stfu?
'foolish' statements? are you kidding me? 'omfg' isnt meant on your message -.='
Its just random..
I made mistake and i couldnt delete... -.-
edited,happy now?