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