Let me introduce myself a little bit as a scripter.
I play in SA-MP 2007 - 2009
I Script for SA-MP: 2008 - 2010
I Script in PHP (WEB) 2009 - 2011
So, i know a lot of how to write script correctly. But Squirrel is new for me. And i stuck here:
local pTemp2 = split( szParams, numb + " " ), msg = pTemp2[0];
else if ( szCmd == "msg" )
{
if ( !szParams ) MessagePlayer( "/msg playerid message", pPlayer );
else
{ local pTemp = split( szParams, " " ), p = GetPlayer( pTemp[ 0 ] );
if ( p )
{
local numb = p.ID.tointeger();
local pTemp2 = split( szParams, numb + " " ), msg = pTemp2[0];
MessagePlayer("PM from " + pPlayer.Name + ":" + msg , p );
PagerMessage( p, msg + " from " + pPlayer.Name, 200, 1, 1 );
}
else MessagePlayer( "playerid not found", pPlayer );
}
}
How to make function "Private message" work correctly ?
Thank you in advance.