PHP Code:
public Action Command_Origin(client, args)
{
float origin[3];
char stringy[9];
GetClientAbsOrigin(client, origin);
FloatToString(origin, stringy, sizeof(stringy)); // Troublesome line
ReplyToCommand(client, stringy);
return Plugin_Handled;
}
I had one job and I somehow blew it up.
I was creating a one-time plugin to get the origin of a location.
It keeps giving me the argument type mismatch error on the first argument (origin), even though I
was seemingly using a float.
Sourcemod is really confusing as the api (plus alliedmods api site) and error system don't really inform me of much, so if 'origin' was something like a vector I wouldn't know.