Problem with pCars
#1

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.
Reply
#2

Try this..
pawn Код:
new Float:x,Float:y,Float:z;
Reply
#3

Didn't worked :P
Reply
#4

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;'
?
Reply
#5

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-
Reply
#6

Yes i did that, But i still got that errors..
Reply
#7

can you show us the errors you get?
Reply
#8

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
Reply
#9

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?
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)