PM help-
#8

Quote:
Originally Posted by Stinged
View Post
"u" allows sscanf to search for both names and ids.
And if the id or name doesn't exist, it sets the variable as INVALID_PLAYER_ID.
So it has nothing to with "d" and "u"

https://sampforum.blast.hk/showthread.php?tid=602923
Read the specifiers section.
I already edited my post.
But, where the hell mistake can be lol? my command have almost same syntax and working perfectly
PHP Code:
new idmess[40];
     if(
sscanf(params"us[40]"idmess)) return SendClientMessage(playerid, -1"{0008F7}USAGE: {FFFFFF}/PM ID MESSAGE");
     if(!
IsPlayerConnected(id)) return SendClientMessage(playerid0xCD0000FF"Player is not connected");
     if(
DND[id] == 1) return SendClientMessage(playerid0xCD0000FF"Player is on DND mode");
     new 
PName[24];
    
GetPlayerName(idPNamesizeof(PName));
    new 
string[100], name[24];
    
GetPlayerName(playeridnamesizeof(name));
    
format(string,sizeof(string),"{FCDF00}[PRIVATE MESSAGE] {8A887B}From %s(%d): {8C8656}%s"nameplayeridmess);
    
SendClientMessage(id, -1string);
    
format(string,sizeof(string),"{FCDF00}[PRIVATE MESSAGE] {8A887B}To %s(%d): {8C8656}%s"PNameidmess);
    
SendClientMessage(playerid, -1string); 
Reply


Messages In This Thread
PM help- - by b0b - 02.08.2016, 14:32
Re: PM help- - by J0sh... - 02.08.2016, 14:32
Re: PM help- - by SyS - 02.08.2016, 14:33
Re: PM help- - by F1N4L - 02.08.2016, 14:34
Re: PM help- - by b0b - 02.08.2016, 14:39
Re: PM help- - by Shinja - 02.08.2016, 18:34
Re: PM help- - by Stinged - 02.08.2016, 18:35
Re: PM help- - by Shinja - 02.08.2016, 18:37
Re: PM help- - by Fantje - 02.08.2016, 20:11
Re: PM help- - by AlexPalermitano97 - 03.08.2016, 01:18

Forum Jump:


Users browsing this thread: 1 Guest(s)