SA-MP Forums Archive
String Problem - 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: String Problem (/showthread.php?tid=121462)



String Problem - pagie1111 - 17.01.2010

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.


Re: String Problem - Josh! - 17.01.2010

Provide your code for the VehicleOwner function.


Re: String Problem - pagie1111 - 17.01.2010

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]


Re: String Problem - Josh! - 17.01.2010

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



Re: String Problem - pagie1111 - 17.01.2010

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



Re: String Problem - pagie1111 - 17.01.2010

sorry to bump but can anyone help me?


Re: String Problem - [HiC]TheKiller - 17.01.2010

What variable uses the enum?


Re: String Problem - pagie1111 - 17.01.2010

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



Re: String Problem - [HiC]TheKiller - 17.01.2010

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



Re: String Problem - MadeMan - 17.01.2010

How do you save the owners name to that variable?