pawn Код:
CMD:test(playerid, params[])
{
SendClientMessage(playerid, -1, "Test");
SendClientMessage(playerid, -1, "Test");
SendClientMessage(playerid, -1, "Test");
SendClientMessage(playerid, -1, "Test");
SendClientMessage(playerid, -1, "Test");
SendClientMessage(playerid, -1, "Test");
return 1;
}
Lets say I have this code (although it would compile, just showing an example). It worked fine before this was added. So I will comment out half of the code:
pawn Код:
CMD:test(playerid, params[])
{
//SendClientMessage(playerid, -1, "Test");
//SendClientMessage(playerid, -1, "Test");
//SendClientMessage(playerid, -1, "Test");
//SendClientMessage(playerid, -1, "Test");
SendClientMessage(playerid, -1, "Test");
SendClientMessage(playerid, -1, "Test");
return 1;
}
Now, lets say it doesn't work. That means the commented code (//) is not where the error is. Comment out half of the other half then, like so:
pawn Код:
CMD:test(playerid, params[])
{
SendClientMessage(playerid, -1, "Test");
SendClientMessage(playerid, -1, "Test");
SendClientMessage(playerid, -1, "Test");
SendClientMessage(playerid, -1, "Test");
SendClientMessage(playerid, -1, "Test");
//SendClientMessage(playerid, -1, "Test");
//return 1;
}
No lets say that doesn't work either. The only reasonable problem then would be the second to last SendClientMessage, as it is the only one we didn't comment out.
See what I mean?