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

strange error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
echocage
Member
Join Date: Oct 2021
Old 08-07-2022 , 16:25   strange error
Reply With Quote #1

int a[100];
a = GetConVarInt("sv_disable_roll_aa");


plugin.sp(110) : error 035: argument type mismatch (argument 1)

Wtf, where is mismatching?
echocage is offline
Cruze
Veteran Member
Join Date: May 2017
Old 08-07-2022 , 16:29   Re: strange error
Reply With Quote #2

"a" is defined as array so it should be like:
PHP Code:
a[0] = GetConVarInt("sv_disable_roll_aa"); 
__________________
Taking paid private requests! Contact me
Cruze is offline
echocage
Member
Join Date: Oct 2021
Old 08-07-2022 , 16:37   Re: strange error
Reply With Quote #3

nah, that`s didnt helped me
plugin.sp(110) : error 035: argument type mismatch (argument 1)
echocage is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 08-07-2022 , 16:45   Re: strange error
Reply With Quote #4

PHP Code:
public void OnPluginStart()
{
    
int a[100];
    
a[0] = GetConVarInt(FindConVar("sv_disable_roll_aa"));

But you example doesn't make sense a[100]
why creating an int array of 100 positions?
Probably you just need "a" unless you need a string convar.
__________________
Marttt is offline
echocage
Member
Join Date: Oct 2021
Old 08-07-2022 , 16:54   Re: strange error
Reply With Quote #5

Quote:
Originally Posted by Marttt View Post
PHP Code:
public void OnPluginStart()
{
    
int a[100];
    
a[0] = GetConVarInt(FindConVar("sv_disable_roll_aa"));

But you example doesn't make sense a[100]
why creating an int array of 100 positions?
Probably you just need "a" unless you need a string convar.
Thank you! Thats helped me
echocage 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 01:01.


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