Horse Race Points , Store

11/04/2011 20:09 abdeen#1
Well , Thanks .

Request Remove please .
11/04/2011 22:18 { Angelius }#2
public static void SaveHorseRaceStatistics(Network.GamePackets.HorseR aceStatistic stats)

the red part = null

1. you are not creating a new instance of the (Network.GamePackets.HorseRaceStatistic) class
2. you are not checking for any null values before you use them .

make sure that the (Network.GamePackets.HorseRaceStatistic) part is not = null before you pass it to the SaveHorseRaceStatistics void .

IE.
Quote:
Network.GamePackets.HorseRaceStatistic Status = new Network.GamePackets.HorseRaceStatistic();
Status.Whatever = Whatever;
SaveHorseRaceStatistics(Status);
and about the points. there is a status effect subtype to show these points in the store window. find it your self .
11/04/2011 22:48 abdeen#3
Quote:
Originally Posted by { Angelius } View Post
public static void SaveHorseRaceStatistics(Network.GamePackets.HorseR aceStatistic stats)

the red part = null

1. you are not creating a new instance of the (Network.GamePackets.HorseRaceStatistic) class
2. you are not checking for any null values before you use them .

make sure that the (Network.GamePackets.HorseRaceStatistic) part is not = null before you pass it to the SaveHorseRaceStatistics void .

IE.


and about the points. there is a status effect subtype to show these points in the store window. find it your self .
Can explain more with a simple guide if you can ?

and what about itemsusage for horse race store ?

and about points. can you show me how the effect subtype to show these points in arena qualifier ?

Thanks dude .
11/04/2011 23:11 Korvacs#4
Come on........Go and learn the basics ffs, you clearly have no idea what your doing.
11/04/2011 23:22 abdeen#5
Quote:
Originally Posted by Korvacs View Post
Come on........Go and learn the basics ffs, you clearly have no idea what your doing.
You are always getting on my frustration. Thanks .
11/04/2011 23:24 Korvacs#6
Yeah because if you learnt the basics you would be able to fix simple problems by yourself and you would be a better programmer for it, instead every little problem you have, you come here and make a post about it, you need to work on improving your skill set if you want to write and maintain a server.
11/04/2011 23:38 abdeen#7
Quote:
Originally Posted by Korvacs View Post
Yeah because if you learnt the basics you would be able to fix simple problems by yourself and you would be a better programmer for it, instead every little problem you have, you come here and make a post about it, you need to work on improving your skill set if you want to write and maintain a server.

yes Korvacs , i am agree with you in this point .

but how can you know that i am not learning anything ?

i am already learning from my mistake`s or my issues although if its fixed too by someone or he/she just showed or guided me how to fix it with simple steps .

now i am coding basics by my self , and when i tried to work on Horse Race system
i started by my self with out help , unless i got those problems which i can`t fix it with out any help .

at the past i was copy and paste some code to fix something , but these days i am writing it by my hands because i am already learned it .

before i start this thread i searched my source to find is there anyway to fix my issue , but really i found nothing about it . so i started this thread and was my hope is someone try to help me with explain of hardest things for me .

thanks Korvacs .
11/04/2011 23:46 Korvacs#8
A nullreferenceexception is basic fundamental day 1 coding, dont learn from implementing new stuff, learn from fixing the problems you have at the moment, by yourself.

The funny thing is im pretty sure we told you how to fix a null reference exception in the last thread you started =/
11/05/2011 00:00 abdeen#9
Quote:
Originally Posted by Korvacs View Post
A nullreferenceexception is basic fundamental day 1 coding, dont learn from implementing new stuff, learn from fixing the problems you have at the moment, by yourself.

The funny thing is im pretty sure we told you how to fix a null reference exception in the last thread you started =/
post fix step here again
Remind me Korvacs O.o
11/05/2011 01:26 pro4never#10
Quote:
Originally Posted by abdeen View Post
post fix step here again
Remind me Korvacs O.o
No.

We've given you countless bits of advice on how to LEARN programming (not simply copy/paste) and you've ignored any useful advice we've given.

We went over what a null reference exception was and how it happens/how to fix it before. If you didn't pay attention then why should we repeat ourselves?

Go do some googling, read a book or two on C# and start small. Ooh wait... we've told you this like 10 times.
11/05/2011 02:04 abdeen#11
Quote:
Originally Posted by pro4never View Post
No.

We've given you countless bits of advice on how to LEARN programming (not simply copy/paste) and you've ignored any useful advice we've given.

We went over what a null reference exception was and how it happens/how to fix it before. If you didn't pay attention then why should we repeat ourselves?

Go do some googling, read a book or two on C# and start small. Ooh wait... we've told you this like 10 times.
Well , what issue of the 3 issue is because of null ?

i have 3 issues

1- save Horse Race Statictics.

2- Pts in Horse Race Store.

3- when i ask the NPC to gimme points , its dont save it in the table .