22.03.2012, 20:23
Is there like an auto-fixer or something that could change this (as an example):
To something with NO indentation errors. I really need help, someone fixed my script on pastebin, but now since i got my one with errors fixed off of pastebin, it has a lot of indentation errors. Any help here?
pawn Код:
public OnPlayerDisconnect(playerid, reason) //This is From my Script Simple Join and Leave Messages
{
new name[24];
GetPlayerName(playerid, name, sizeof name);
new string[128];
switch(reason)
{
case 0: format(string, sizeof(string), "%s has left the server. (Lost Connection)", name);
case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", name);
case 2: format(string, sizeof(string), "%s has left the server. (Kicked/Banned)", name);
}
SendClientMessageToAll(0x880088FF, string);
return 1;
}