SA-MP Forums Archive
Lil problem with mysql and Createvehicle - 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: Lil problem with mysql and Createvehicle (/showthread.php?tid=174837)



Lil problem with mysql and Createvehicle - ihatetn931 - 07.09.2010

Код:
D:\sa-mp server\gamemodes\SLRP.pwn(31250) : error 001: expected token: "-string end-", but found "-identifier-"
D:\sa-mp server\gamemodes\SLRP.pwn(31250) : warning 215: expression has no effect
D:\sa-mp server\gamemodes\SLRP.pwn(31250) : error 001: expected token: ";", but found ")"
D:\sa-mp server\gamemodes\SLRP.pwn(31250) : error 029: invalid expression, assumed zero
D:\sa-mp server\gamemodes\SLRP.pwn(31250) : fatal error 107: too many error messages on one line
Whats wrong with this? Should i take out the
pawn Код:
[veh1[playerid]]
Or is somthing esle causing the problem?

pawn Код:
veh1[playerid] = CreateVehicle(CMySQL_Int1(plname, "Model"), CMySQL_SetFloat1(plname, "ParkX",VehicleInfo[veh1[playerid]][vX]), CMySQL_SetFloat1(plname, "ParkY",VehicleInfo[veh1[playerid]][vY]), CMySQL_SetFloat1(plname, "ParkZ"VehicleInfo[veh1[playerid]][vZ]), CMySQL_SetFloat1(plname, "ParkA",VehicleInfo[veh1[playerid]][vAngle]), CMySQL_Int1(plname, "Color1"), CMySQL_Int1(plname, "Color2"), 60000);
I use this include. I would ask on that topic but it's sorta dead and i have asked somthing on it and no one has really responded

https://sampforum.blast.hk/showthread.php?tid=166856

Edit nevermind, I think i figure out. Hopefully it works this time


Re: Lil problem with mysql and Createvehicle - LarzI - 07.09.2010

pawn Код:
veh1[playerid] = CreateVehicle(CMySQL_Int1(plname, "Model");
CMySQL_SetFloat1(plname, "ParkX",VehicleInfo[veh1[playerid]][vX]);
CMySQL_SetFloat1(plname, "ParkY",VehicleInfo[veh1[playerid]][vY]);
CMySQL_SetFloat1(plname, "ParkZ"VehicleInfo[veh1[playerid]][vZ]);
CMySQL_SetFloat1(plname, "ParkA",VehicleInfo[veh1[playerid]][vAngle]);
CMySQL_Int1(plname, "Color1");
CMySQL_Int1(plname, "Color2", 60000);

Don't blame me if I'm wrong, I don't know how this MySQL plugin/fs works.


This forum requires that you wait 120 seconds between posts. Please try again in 32 seconds.


Re: Lil problem with mysql and Createvehicle - ihatetn931 - 07.09.2010

Quote:
Originally Posted by LarzI
Посмотреть сообщение
pawn Код:
veh1[playerid] = CreateVehicle(CMySQL_Int1(plname, "Model");
CMySQL_SetFloat1(plname, "ParkX",VehicleInfo[veh1[playerid]][vX]);
CMySQL_SetFloat1(plname, "ParkY",VehicleInfo[veh1[playerid]][vY]);
CMySQL_SetFloat1(plname, "ParkZ"VehicleInfo[veh1[playerid]][vZ]);
CMySQL_SetFloat1(plname, "ParkA",VehicleInfo[veh1[playerid]][vAngle]);
CMySQL_Int1(plname, "Color1");
CMySQL_Int1(plname, "Color2", 60000);

This forum requires that you wait 120 seconds between posts. Please try again in 32 seconds.
Won't that give me an error due to Creatvehicle not having X Y Z And the angle in it?