View Single Post
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