SHARE
TWEET

Untitled

a guest Jul 17th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ...
  2.     List<crimes> Crimes = new List<crimes>();
  3.     DataTable crimesData = blablabla
  4.     for(int i=0;i<crimesData.Rows.Count;i++)
  5.     {
  6.         crimes newcrime = new crimes(blablabla); // initiate new class with new parameters
  7.         Crimes.Add(newcrime);
  8.     }
  9.     API.setEntitySyncedData(phandle,"Crimes",Crimes);
  10.     ...
  11.    
  12. ...    
  13. List<crimes> Crimes = (List<crimes>)API.getEntitySyncedData(player.handle,"Crimes"); // error
  14. ...
  15.    
  16. System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  17.   at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in <8f2c484307284b51944a1a13a14c0266>:0
RAW Paste Data
Top