sscanf warning: Strings without a length are deprecated, please add a destination size.
CMD:me(playerid, params[]){if(IsPlayerConnected(playerid)){new String[256];new String2[256];new Nev[MAX_PLAYER_NAME];new Float:PosX;new Float:PosY;new Float:PosZ;GetPlayerPos(playerid, PosX, PosY, PosZ);GetPlayerName(playerid, Nev, sizeof(Nev));if(sscanf(params, \"s\", String)) return SendNGRPMessage(playerid, 3, \"/me [cselekvés]\");for(new i = 0; i < MAX_PLAYERS; i++){ if(IsPlayerConnected(i)) { if(IsPlayerInRangeOfPoint(i, 30.00, PosX, PosY, PosZ)) { if(IsPlayerBarat(i, Nev)) { format(String2, sizeof(String2), \"{f041be}* %s %s.{f041be}\", Nev, String); SendClientMessage(i, -1, String2); } else { format(String2, sizeof(String2), \"{f041be}* Valaki %s.{f041be}\", String); SendClientMessage(i, -1, String2); } } }}}return 1;}
public SendNGRPMessage(playerid, Tipus, Szoveg[]){new String[256];if(Tipus == 1) //Info{format(String, sizeof(String), \"{ffffff}>>{ffffff} {0a7bc7}NG-RP{0a7bc7} {ffffff}<< -{ffffff} {128008}Információ:{128008} {ffffff}%s.{ffffff}\", Szoveg);}if(Tipus == 2) //Hiba{format(String, sizeof(String), \"{ffffff}>>{ffffff} {0a7bc7}NG-RP{0a7bc7} {ffffff}<< -{ffffff} {8a0707}Hiba:{8a0707} {ffffff}%s.{ffffff}\", Szoveg);}if(Tipus == 3) //Használat{format(String, sizeof(String), \"{ffffff}>>{ffffff} {0a7bc7}NG-RP{0a7bc7} {ffffff}<< -{ffffff} {d1710b}Használat:{d1710b} {ffffff}%s.{ffffff}\", Szoveg);}SendClientMessage(playerid, -1, String);return 1;}
if(sscanf(params, \"s\", String)) return SendNGRPMessage(playerid, 3, \"/me [cselekvés]\");
if(sscanf(params, \"s[256]\", String)) return SendNGRPMessage(playerid, 3, \"/me [cselekvés]\");