[Tutorial] Making a Private message system
#9

ehm you forgot something
pawn Code:
if(sscanf(params,"us[128]",id,message)) return SendClientMessage(playerid, -1, "Syntax: /pm <id> <message>");// this is for your extension aka params, u is for the id s is for the string 'message'
and also here
pawn Code:
if(sscanf(params,"s[128]",message)) return SendClientMessage(playerid, -1, "Syntax: /r <message>");// same as the pm command
You have to add the string length else you will get warning at your console
Reply


Messages In This Thread
Making a Private message system - by thefatshizms - 25.11.2012, 20:05
Re: Making a Private message system - by NewerthRoleplay - 25.11.2012, 20:08
Re: Making a Private message system - by thefatshizms - 25.11.2012, 20:59
Re: Making a Private message system - by Zex Tan - 25.11.2012, 23:39
Re: Making a Private message system - by thefatshizms - 26.11.2012, 06:34
Re: Making a Private message system - by thefatshizms - 26.11.2012, 09:14
Re: Making a Private message system - by zProfessional - 26.11.2012, 09:31
Re: Making a Private message system - by XtremeR - 26.11.2012, 09:48
Re: Making a Private message system - by CoDeZ - 26.11.2012, 11:35
Re: Making a Private message system - by thefatshizms - 26.11.2012, 11:49

Forum Jump:


Users browsing this thread: 1 Guest(s)