Vehicle ownership problem.
#1

Hello everyone,

I tried to implement an existing vehicle system for my server (which I will likely heavily edit for purpose) – this is what I am using: https://sampforum.blast.hk/showthread.php?tid=416104. However, I am experiencing a problem.
I figured making a thread would be better than replying to the one above because this would get noticed more easily, it is less cluttered and people who aren’t familiar with that system can still probably help me.

The line outlined in red is the one that is giving me grief.

I highly appreciate any and all responses given.
Reply
#2

one more ) is missing at the end.
Reply
#3

In the future post your code inside [PAWN] tags, otherwise it's annoyingly time consuming to work with your code.

Because of the way INI_Float is defined (it has a return statement as you can see in your error message), you can't separate it with a comma on the same line as your format code.

pawn Код:
for(new i = 0; i < 4; i++) {
    format(strLoc, sizeof(strLoc), "Loc%d", i);
    INI_Float(strLoc, VehicleInfo[vehicleid][vLoc][i]);
}

// or if you want to keep it on one line (which is often bad practice, not recommended)

for(new i = 0; i < 4; i++) { format(strLoc, sizeof(strLoc), "Loc%d", i); INI_Float(strLoc, VehicleInfo[vehicleid][vLoc][i]); }
Reply
#4

Will do. Also, thank you very much for the help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)