String Problem
#1

I am making a vehicle system. When you enter the car the cars name, id, and owner shows up. Currently I can't get the owner's name to show up. :S

[/pawn]format(string,sizeof(string),"You entered a 'veh'(%d) Owner: %s",vehicleid, VehicleOwner(vehicleid));[/pawn]

Please help, its really annoying.
Reply
#2

Provide your code for the VehicleOwner function.
Reply
#3

Sorry that was the old way that I did it. Here:

[/pawn]format(string,sizeof(string),"You entered a 'veh'(%d) Owner: %s",vehicleid, Veh[vehicleid][Owner]);[/pawn]
Reply
#4

Quote:
Originally Posted by Josh!
Provide your code for the Veh function.
Reply
#5

pawn Код:
enum Vehicle
{
    Sold,
    Owner[MAX_PLAYER_NAME],
    Model,
    Paint1,
    Paint2,
    Locked,
    Price,
    CustomSpawn,
    Float:CX,
    Float:CY,
    Float:CZ,
    Float:Zang,
};
Reply
#6

sorry to bump but can anyone help me?
Reply
#7

What variable uses the enum?
Reply
#8

Quote:
Originally Posted by [HiC
TheKiller ]
What variable uses the enum?
pawn Код:
new Veh[MAX_VEHICLES][Vehicle];
Reply
#9

pawn Код:
format(string,sizeof(string),"You entered a 'veh'(%d) Owner: %s",vehicleid, Veh[vehicleid][Owner]);
Reply
#10

How do you save the owners name to that variable?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)