Код:
if(egyezik(cmd, "/bemutatkoz") || egyezik(cmd, "/bemutatkoz"))
{
new ID;
#pragma tabsize 0
new string[200];
new Float:X, Float: Y, Float:Z;
new nev[MAX_PLAYER_NAME];
new nev2[MAX_PLAYER_NAME];
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, "Hasznбlat: /bemutatkoz ID/Nйv"); <<< ERROR !
GetPlayerPos(playerid, X, Y, Z);
if(!IsPlayerInRangeOfPoint(ID, 5.0, X, Y, Z)) return SendClientMessage(playerid, -1, "Nincs a megadott jбtйkos a kцzeledben!");
SendClientMessage(playerid, -1, "Bemutatkoztбl valakinek!");
GetPlayerName(playerid, nev, 24);
GetPlayerName(ID, nev2, 24);
format( string, sizeof ( string ), "Ьdv! Йn %s vagyok!", nev);
SendClientMessage( ID, -1, string );
ShowPlayerNameTagForPlayer(playerid, ID, true);
ShowPlayerNameTagForPlayer(ID, playerid, true);
return 1;
}
Actually, that wouldn't fix the problem.
You are using cmdtext, so you need to count the length of the command, then replace cmdtext at sccanf with cmdtext[number]. Replace that number with the length + 1