Need Help Please Quick Replay!
#7

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?
Reply


Messages In This Thread
Need Help Please Quick Replay! - by djcabo - 23.07.2012, 22:35
Re: Need Help Please Quick Replay! - by HyDrAtIc - 23.07.2012, 23:10
Re: Need Help Please Quick Replay! - by Kindred - 23.07.2012, 23:36
Re: Need Help Please Quick Replay! - by djcabo - 23.07.2012, 23:41
Re: Need Help Please Quick Replay! - by Kindred - 23.07.2012, 23:42
Re: Need Help Please Quick Replay! - by djcabo - 23.07.2012, 23:43
Re: Need Help Please Quick Replay! - by Kindred - 23.07.2012, 23:52
Re: Need Help Please Quick Replay! - by HyDrAtIc - 23.07.2012, 23:58
Re: Need Help Please Quick Replay! - by Ranama - 24.07.2012, 00:01

Forum Jump:


Users browsing this thread: 3 Guest(s)