28.02.2010, 18:11
Quote:
Originally Posted by CaHbKo
pawn Код:
|
pawn Код:
dcmd_combine(playerid,params[])
{
new
s1,
s2,
s3,
s4,
bool:Correct = false;
if(sscanf(params, "dddd", s1, s2, s3, s4)) { return SendClientMessage(playerid, red, "Usage: /combine 4 number"); }
else
{
if(s1 == 2) { if(s2 == 5) { if(s3 == 6) { if(s4 == 1) {
Correct = true;
}}}}
}
if(Correct == true)
{
SendClientMessage(playerid, red, "Correct");
} else {
SendClientMessage(playerid, yellow, "Not agreement.");
}
return 1;
}