loose indentation - how to fix it

I have created such name of thread for you all came here! Sorry, but i need help fast

I created public function to call it from diffrent scripts with CallRemoteFunction, but when it is called it crashes server:
pawn Код:
public SpecPlayer(playerid,specid){
        if(Spawned[specid]==false) return SendClientMessage(playerid, COLOR_LIGHTRED, "ERROR: This player is not spawned.");
        TogglePlayerSpectating(playerid, 1);
        PlayerSpectatePlayer(playerid, specid, SPECTATE_MODE_NORMAL);
        PlayerSpectateVehicle(playerid, GetPlayerVehicleID(specid), SPECTATE_MODE_NORMAL);
        GetPlayerName(specid, incriminato, sizeof(incriminato)),GetPlayerName(playerid, adminname, sizeof(adminname));
        format(string, sizeof(string), "{00ff00}You're spectating {ffffff}%s", incriminato), SendClientMessage(playerid, COLOR_ZADMINBLUE, string);
        format(string, sizeof(string), "{ffffff}%s {00ff00}is spectating you", adminname), SendClientMessage(specid, COLOR_ZADMINBLUE, string);
        return 1;
there is nothing written about crash in server log. What can it be?

Forum Jump:

Users browsing this thread: 1 Guest(s)