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

Passing string to CreateTimer Function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
marco811
New Member
Join Date: Jul 2019
Old 07-24-2019 , 15:03   Passing string to CreateTimer Function
Reply With Quote #1

Hello. I have this error: error 035: argument type mismatch (argument 3)

I am trying to pass a string variable to the createTimer function.


Code:
new String:steamid[25];
	
if(GetClientAuthId(client, AuthId_Steam2, steamid, sizeof(steamid))) {
	CreateTimer(2.0, saveBan, steamid);
}

public Action saveBan(Handle timer, any steamid) {
.......
}
This method does not work either: (now this error: error 100: function prototypes do not match)

Not working:
Code:
public Action saveBan(Handle timer, char[] steamid) {
.........
}
Not working:
( error 100: function prototypes do not match)
Code:
public Action saveBan(Handle timer, const char[] steamid) {
........
}
What is the solution? I am confused! Thanks
marco811 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 11:42.


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