I want create an API who make a forum account when an user register on the server.
Код:
public RegisterAccount(playerid, mail[], password[])
{
new
request[550];
format(request, sizeof(request), "publickey?=%s&privatekey=%s&username=%s&sampid=%d&email=%s&password_hash=%s", API_PUBLIC_KEY, API_PRIVATE_KEY, GetName(playerid), 0, mail, password);
HTTP(playerid, HTTP_GET, API_LINK, request, "CreateAccount_HTTP");
return 1;
}
forward CreateAccount_HTTP(index, response_code, data[]);
public CreateAccount_HTTP(index, response_code, data[])
{
printf("index: %d | response_code: %d | data[]: %s", index, response_code, data);
}
Код:
[13:29:00] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[13:29:00] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[13:29:00] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[13:29:01] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[13:29:01] [sampgdk:error] Too many callback arguments (at most 32 allowed)
[13:29:01] [sampgdk:error] Too many callback arguments (at most 32 allowed)
Update your plugins, I think this error occurs when you have two plugins with different samp gdk version....