if(strcmp(cmd, "/hextoint", true) == 0)
{
tmp = strtok(cmd, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "/HexToInt [Hex]");
return 1;
}
format(string, sizeof(string),"HexToInt |Hex:%x | Int:%i",tmp,HexToInt(tmp));
SendClientMessage(playerid, COLOR_RED, string);
return 1;
}
if(strcmp(cmd, "/IntToHex", true) == 0)
{
tmp = strtok(cmd, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "/IntToHex [Int]");
return 1;
}
format(string, sizeof(string),"IntToHex |Int:%i | Hex:%x",tmp,IntToHex(strval(tmp)));
SendClientMessage(playerid, COLOR_RED, string);
return 1;
}
Wenn ich die Cmds eingebe kommt immer /HexToInt [Hex] bzw. IntToHex [Int]
Hatte das schonmal weiß aber nethmehr woran es da lag also pls help!