01.03.2013, 20:17
there is many way to do that. but i mostly use that because its only 1 line and convserved space
pawn Код:
CMD:hey(playerid,params[])//1st Pattern i always use
{
if(x != 1) reuturn SendPM(playerid,x...,x...); // you dont need true
return 1;
}
CMD:hey(playerid, params[])//i never tried this one
{
if(x != 1)
{
SendPM(playerid,x...,x...);
return 1;
}
return 1;
}
CMD:hey(playerid, params[])//sometimes i use
{
if(x != 1)
{
return SendPM(playerid,x...,x...);
}
return 1;
}
CMD:hey(playerid, params[]//most people use this way
{
if(x != 1)
{
//stuff in here
}
else SendPM(playerid,x...,x...);
return 1;
}