Lil problem with mysql and Createvehicle
#1

Код:
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
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)