08.02.2014, 21:21
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/frep", cmdtext, true, 10) == 0)
{
if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE: /frep [Text]");
WaitTimeForCMD[playerid]=GetTickCount();
new string[128];
new name[32];
GetPlayerName(playerid, name, 32);
format(string, sizeof(string), "name=%s&posttext=%s", name);
HTTP(playerid, HTTP_POST, "sfcnrrpg.web44.net/forum/", string, "MyHTMLError");
return 1;
}
return 0;
}
Okay the CMD works ingame but look at the post it did i wrote the Explanation after but it still not working I will +1 Rep for help
http://sfcnrrpg.web44.net/forum/show...om-Brad_Nunchr
Idk why
{
if (strcmp("/frep", cmdtext, true, 10) == 0)
{
if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE: /frep [Text]");
WaitTimeForCMD[playerid]=GetTickCount();
new string[128];
new name[32];
GetPlayerName(playerid, name, 32);
format(string, sizeof(string), "name=%s&posttext=%s", name);
HTTP(playerid, HTTP_POST, "sfcnrrpg.web44.net/forum/", string, "MyHTMLError");
return 1;
}
return 0;
}
Okay the CMD works ingame but look at the post it did i wrote the Explanation after but it still not working I will +1 Rep for help
http://sfcnrrpg.web44.net/forum/show...om-Brad_Nunchr
Idk why