Need Help Please Quick Replay! -
djcabo - 23.07.2012
Hey All
i running win 7 and i'm trying to compile my gamemode and when i compile the compile Stop Working And When I See The .amx file its 0kb?? Please Tell how To Fix/Solved This Problem!!
Re: Need Help Please Quick Replay! -
HyDrAtIc - 23.07.2012
I can't help with this proplem
Re: Need Help Please Quick Replay! -
Kindred - 23.07.2012
Try to see what you last edited, and comment out the lines. Then, if it compiles, that means something is wrong with the code there. If you wish to do this further and see the exact problem, comment out half of the lines you previously did and if it still crashes, the other half you didn't comment out is the problem. Continue doing this until you find the reason, or what not.
In case you didn't know what I just meant ^, look at this quote from ******:
Quote:
Originally Posted by ******
You don't have to go through every line, just the ones you added recently. You can also make it faster by commenting out half the mode and compiling. If you get errors the crash is in the commented half, if you get a crash you can narrow it down further by commenting out half of that half.
|
Quote:
Originally Posted by James_Nick
I can't help with this proplem
|
Then why write here? Stop post whoring.
Re: Need Help Please Quick Replay! -
djcabo - 23.07.2012
Kindredd!! Add My Skype dj.cabo
Re: Need Help Please Quick Replay! -
Kindred - 23.07.2012
I'd rather not. This is simple to do, and I and/or ****** explained it more than needed.
Re: Need Help Please Quick Replay! -
djcabo - 23.07.2012
well im a beginner scripter so i need help
Re: Need Help Please Quick Replay! -
Kindred - 23.07.2012
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?
Re: Need Help Please Quick Replay! -
HyDrAtIc - 23.07.2012
Kindred im his friend he doesn't use dcmd he use the normal
ifstrcmp
Re: Need Help Please Quick Replay! -
Ranama - 24.07.2012
Quote:
Originally Posted by James_Nick
Kindred im his friend he doesn't use dcmd he use the normal
ifstrcmp
|
still the same using of commenting lines.
if you have no clue where the error is then do this /* at the start of script and */ at the half point of script
then if it crashes it means that the error is in the other side witch was not /*ed*/ so go half that and look and keep on going, like Kindred said...