AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [CSGO] Need help with rewriting to new syntax (https://forums.alliedmods.net/showthread.php?t=334485)

Nubbe 09-27-2021 15:51

[CSGO] Need help with rewriting to new syntax
 
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

Sarrus 09-27-2021 16:01

Re: [CSGO] Need help with rewriting to new syntax
 
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.

Benito 09-28-2021 11:56

Re: [CSGO] Need help with rewriting to new syntax
 
Quote:

Originally Posted by Nubbe (Post 2759030)
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());


All times are GMT -4. The time now is 13:35.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.