Register for your free account! | Forgot your password?

You last visited: Today at 06:57

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Nullptr help

Discussion on Nullptr help within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2017
Posts: 342
Received Thanks: 18
Question Nullptr help

Code:
Nullptr Fixed!
Other error:
Code:
C:\Flyff\Source\_Interface\WndWorld.cpp(546): error C2143: syntax error : missing ',' before ':'
C:\Flyff\Source\_Interface\WndWorld.cpp(547): error C2143: syntax error : missing ';' before '{'
C:\Flyff\Source\_Interface\WndWorld.cpp(548): error C2541: 'delete' : cannot delete objects that are not pointers
C:\Flyff\Source\_Interface\WndWorld.cpp(550): fatal error C1903: unable to recover from previous error(s); stopping compilation
Codes
Code:
	CDropListRender::~CDropListRender()
	{
		for (auto pItem : mItemList)
		{
			delete pItem;
		}
	}

	void CDropListRender::Process()
babyminion is offline  
Old 02/14/2019, 10:21   #2
 
elite*gold: 0
Join Date: Jul 2018
Posts: 93
Received Thanks: 59
WndWorld.cpp
Line 546 - syntax error : missing ',' before ':'
Line 547 - syntax error : missing ';' before '{'
-Valor is offline  
Old 02/14/2019, 10:30   #3
 
SEDU ✔'s Avatar
 
elite*gold: 0
Join Date: Jul 2015
Posts: 108
Received Thanks: 25
holy **** it literally says there what's wrong
SEDU ✔ is offline  
Old 02/14/2019, 10:31   #4
 
elite*gold: 0
Join Date: Mar 2017
Posts: 342
Received Thanks: 18
Quote:
Originally Posted by -Valor View Post
WndWorld.cpp
Line 546 - syntax error : missing ',' before ':'
Line 547 - syntax error : missing ';' before '{'
i did this
Code:
	CDropListRender::~CDropListRender()
	{
		for (auto pItem, : mItemList);
		{
			delete pItem;
		}
	}

	void CDropListRender::Process()
and this is what i got
Code:
C:\Flyff\Source\_Interface\WndWorld.cpp(546): error C2059: syntax error : ':'
babyminion is offline  
Old 02/14/2019, 11:02   #5
 
elite*gold: 50
Join Date: Jun 2015
Posts: 100
Received Thanks: 210
Quote:
Originally Posted by babyminion View Post
i did this
Code:
	CDropListRender::~CDropListRender()
	{
		for (auto pItem, : mItemList);
		{
			delete pItem;
		}
	}

	void CDropListRender::Process()
and this is what i got
Code:
C:\Flyff\Source\_Interface\WndWorld.cpp(546): error C2059: syntax error : ':'
Range based for loops don't exist in visual studio 2003 and you're a ******* moron
ディオニュソス is offline  
Thanks
3 Users
Old 02/14/2019, 11:11   #6
 
elite*gold: 0
Join Date: Mar 2017
Posts: 342
Received Thanks: 18
Sorry as you can see on my signiture i am just a leecher and i just need help to figure it out. ******* triggerd moron
babyminion is offline  
Old 02/14/2019, 13:46   #7
 
elite*gold: 50
Join Date: Jun 2015
Posts: 100
Received Thanks: 210
Quote:
Originally Posted by babyminion View Post
Sorry as you can see on my signiture i am just a leecher and i just need help to figure it out. ******* triggerd moron
You should replace that with #scum
ディオニュソス is offline  
Old 02/14/2019, 15:48   #8
 
netHoxInc's Avatar
 
elite*gold: 117
Join Date: Jan 2008
Posts: 790
Received Thanks: 992
Honestly... give up coding. Thats the only thing i can say without being rude.

Your lack of competence on reading one of the most simple errors just triggers everyone which is fairly understandable.

If u want to leech, leech a complete source which is known to work. But srsly never even try again to modify such. Its unimaginable that you'll ever succeed without being spoon fed. And that again might be the worst way of leeching.

Good luck further. And dont hesistate to simply drop all your coding projects.

Kind regards,net.
netHoxInc is offline  
Thanks
4 Users
Old 02/14/2019, 22:01   #9
 
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 587
Switch the for-range loop to an iterator loop if you're using the code on vs2003 and you wont be able to use auto.
Avalion is offline  
Thanks
1 User
Old 02/15/2019, 04:11   #10
 
elite*gold: 0
Join Date: Mar 2017
Posts: 342
Received Thanks: 18
Quote:
Originally Posted by netHoxInc View Post
Honestly... give up coding. Thats the only thing i can say without being rude.

Your lack of competence on reading one of the most simple errors just triggers everyone which is fairly understandable.

If u want to leech, leech a complete source which is known to work. But srsly never even try again to modify such. Its unimaginable that you'll ever succeed without being spoon fed. And that again might be the worst way of leeching.

Good luck further. And dont hesistate to simply drop all your coding projects.

Kind regards,net.
Thanks sir

Quote:
Originally Posted by Avalion View Post
Switch the for-range loop to an iterator loop if you're using the code on vs2003 and you wont be able to use auto.
Thanks for advise
babyminion is offline  
Reply


Similar Threads Similar Threads
[HELP]HELP HELP HELP[HELP]
09/23/2013 - Facebook - 3 Replies
GUYS ^^ THIS IS A HELP THREAD NOT REQUEST THREAD BUT YOU CAN CONSIDER IT AS REQUEST THREAD DOES ANYONE OF YOU KNOW THE AUTO SUBMIT PHP CODE? THANKS!
help help help help help help
06/28/2009 - Say Hello - 0 Replies
how i can dowmload Mangos 6385 ??????????????????????????????????? please give me the limk i can't see that i know it is in www.elitepvpers.com/.../153716-release-mangos-relea ses-blackscorpian-win32-2-4-3-a.html - but give me link sent it to my email plz



All times are GMT +1. The time now is 06:58.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.