Raised This Month: $ Target: $400
 0% 

Need help in getting arg value with GetCmdArg


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
itsJakub
New Member
Join Date: Aug 2022
Old 08-08-2022 , 22:03   Need help in getting arg value with GetCmdArg
Reply With Quote #1

**closed**

Hello, thanks for any help in advance!
I am making a command plugin that does different things depending on the argument value (1 or 0). However, I am getting a loose identification error.

char arg[32];
GetCmdArg(1, arg, sizeof(arg));

int lgvalue = StringToInt(arg);

if (lgvalue = 1){
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	42
Size:	41.3 KB
ID:	196218  

Last edited by itsJakub; 08-08-2022 at 22:53. Reason: posted in the wrong forum
itsJakub is offline
 



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 15:42.


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