Error SAMP wtf i am so ANGRY
#1

Here is it

Код:
C:\Users\Dennis Laptop\Desktop\Server\filterscripts\PosSaver.pwn(331) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
and here script

if(strcmp(cmd,"/poshelp",true) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"You must be a rcon admin to use that command!");
(error) ShowPlayerDialog(playerid, MAIN_DIALOG, DIALOG_STYLE_LIST, DIALOG_CAPTION,
MAIN_DIALOG_LIST, "Continue", "Cancel"); // this goes up
}
return 1;
}
Reply
#2

'Loose Indentation' warnings just mean you need to indent your code using TAB or SHIFT+TAB. It's basically keeping your code lined up properly. Also; this warning would have no effect on your code.
pawn Код:
if(strcmp(cmd,"/poshelp",true) == 0)
    {
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"You must be a rcon admin to use that command!");
        ShowPlayerDialog(playerid, MAIN_DIALOG, DIALOG_STYLE_LIST, DIALOG_CAPTION, MAIN_DIALOG_LIST, "Continue", "Cancel"); // this goes up
    }
return 1;
}
Reply
#3

Код:
ShowPlayerDialog(playerid, MAIN_DIALOG, DIALOG_STYLE_LIST, "This\nIs\nThe\nText\nArea.", "Continue", "Cancel");
SAMP:
Quote:

The message you have entered is too short. Please lengthen your message to at least 4 characters.

ic3cr3am:
Quote:

no it's not.

Reply
#4

Put #pragma tabsize 0 under your includes
Reply
#5

Quote:
Originally Posted by itsCody
Посмотреть сообщение
Put #pragma tabsize 0 under your includes
No don't do that bad idea.
Reply
#6

Try to ****** your problem.
Reply
#7

It's probably a space out of place.

I wouldn't worry about it too much, it doesnt fuck up your code or nothing
Reply
#8

Try this
pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
    if(strcmp(cmd,"/poshelp",true) == 0)
    {
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"You must be a rcon admin to use that command!");
        ShowPlayerDialog(playerid, MAIN_DIALOG, DIALOG_STYLE_LIST, DIALOG_CAPTION,MAIN_DIALOG_LIST, "Continue", "Cancel"); // this goes up
        return 1;
    }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)