PDA

View Full Version : code with error


sc1996
27th June 2011, 13:29
Hi racers,


if (Conn.BustedTimer == 4)
{
InSim.Send_MST_Message("/msg ^6>^7 " + Conn.PlayerName + "^7 busts " + Conn.ChaseePlayerName + "^7!");
InSim.Send_MTC_MessageToConnection("^1DO NOT MOVE UNTIL CLEARED BY OFFICER!", Connections[ChaseeIndex].UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^1!!!!^3WAIT FOR FINE/WARNING^1!!!!", Connections[ChaseeIndex].UniqueID, 0);
InSim.Send_MTC_MessageToConnection("^1!!!!^3€500 BUST BONUS^1!!!!", Conn.UniqueID, 0);
Conn.Cash += 500;
InSim.Send_BFN_DeleteButton(0, 13, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 14, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 15, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 16, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 17, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 18, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 19, Conn.UniqueID);
InSim.Send_BFN_DeleteButton(0, 20, Conn.UniqueID);
foreach (clsConnection C in Connections)
{


My problem is the Conn.BustedTime, Conn.PlayerName, (so it's all with conn.). What do I do?

Beaver08
28th June 2011, 14:03
i dont see the problem you have can you be more specific?

smcsc
28th June 2011, 15:06
My problem is the Conn.BustedTime, Conn.PlayerName, (so it's all with conn.). What do I do?

Beaver08
29th June 2011, 11:50
if you look above in the MCI you will find the var Conn = Connection something or other. that just means Conn = the player .. so i really don't see any problem here.