24.05.2013, 16:33
I have 4 errors than i fixed 3 errors right now and 1 error left can somebody to help me please without #pragma tabsize 0
Errors:
Red line is:
Errors:
Код HTML:
C:\Icons\Samp Fajlovi\UGRP V2.0\gamemodes\UGRPG.pwn(33758) : warning 217: loose indentation
Код:
if (strcmp(cmd, "/pusti", true) == 0)
{
tmp = strtok(cmdtext, idx);
giveplayerid = strval(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristenje: /pusti [playerid]");
return 1;
}
if(gTeam[playerid] == 2 || IsACop(playerid))
{
if(DragTimer[playerid] >= 0)
{
if(PlayerCuffed[giveplayerid] == 1)
{
TogglePlayerControllable(giveplayerid, 0);
}
GetPlayerName(giveplayerid, sendername, sizeof(sendername));
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "%s je pustio %s", playername, sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
KillTimer(DragTimer[playerid]);
DragTimer[playerid] = 0;
TogglePlayerControllable(giveplayerid, 1);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste Policajac / FBI agent / S.W.A.T !");
}
return 1;
}
Код HTML:
C:\Icons\Samp Fajlovi\UGRP V2.0\gamemodes\UGRPG.pwn(33758) : warning 217: loose indentation


