Raised This Month: $49 Target: $400
 12% 

[CSGO] Need help with rewriting to new syntax


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nubbe
Junior Member
Join Date: Sep 2021
Old 09-27-2021 , 16:51   [CSGO] Need help with rewriting to new syntax
Reply With Quote #1

So i rewrote everything and still got this error

maprate.sp(764) : error 017: undefined symbol "bool"
and the line of code
bool voluntary = bool ReadPackCell(data);

i cant seem to get my head around whats wrong
Nubbe is offline
Sarrus
Member
Join Date: May 2020
Location: France
Old 09-27-2021 , 17:01   Re: [CSGO] Need help with rewriting to new syntax
Reply With Quote #2

Code:
bool voluntary = ReadPackCell(data);
You already specify the type of voluntary with the first bool. You don't need (and can't) define the type of the output of ReadPackCell with the second bool.
__________________
Discord Coding Server | Steam Profile | Community Website | Github Profile

Taking paid requests (add me on Discord)
Sarrus is offline
Benito
Member
Join Date: Jul 2018
Location: Belgique - Belgium
Old 09-28-2021 , 12:56   Re: [CSGO] Need help with rewriting to new syntax
Reply With Quote #3

Quote:
Originally Posted by Nubbe View Post
So i rewrote everything and still got this error

maprate.sp(764) : error 017: undefined symbol "bool"
and the line of code
bool voluntary = bool ReadPackCell(data);

i cant seem to get my head around whats wrong
use it like
Quote:
bool voluntary = view_as<bool>(data.ReadCell());
__________________
Benito is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:18.


Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode