12.11.2011, 06:03
Код:
{
if (strcmp("/armour", cmdtext, true, 10) == 0)
{
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, COLOR_BRIGHTRED, "Armour set to 100");
}
return 1;
if (strcmp("/spawn", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SendClientMessage(playerid, COLOR_YELLOW, "Teleported to spawn");
}
return 1;
}
Line 125 is the if (strcmp("/armour", cmdtext, true, 10) == 0)
Its a pretty basic script.
I just want to know what the numbers mean in 10) == 0) and what return 1 actually does so I can fix my script. If its got nothing to do with that then just tell me


