What does this mean?
#1

pawn Код:
C:\Users\Jalon\Downloads\samp03e_svr_R2_win32 (1)\gamemodes\SGRPv1.pwn(85) : warning 225: unreachable code
C:\Users\Jalon\Downloads\samp03e_svr_R2_win32 (1)\gamemodes\SGRPv1.pwn(91) : warning 225: unreachable code
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#2

It's pretty self explanatory. The curly brackets are not proper aligned(vertically).
Reply
#3

Post your script/error lines.
Reply
#4

Pawno Code? at line 85 and 91

Thank You!
Reply
#5

85:
pawn Код:
return true;
91:
pawn Код:
{
:3
Reply
#6

Edit it that post like from in script line from 85 to 91 line we need to see that
Reply
#7

pawn Код:
return true;
}
public OnPlayerDisconnect(playerid,reason)
{
    PInfo[playerid][Logged] = 0;//Setting the logged in variable to 0.
    return 1;
    {
Reply
#8

It would be extremely useful if you posted the remainder of the script, the information that you provided is kinda useless when solving problems.
Reply
#9

Quote:
Originally Posted by Arca
Посмотреть сообщение
It's pretty self explanatory. The curly brackets are not proper aligned(vertically).
You're completely wrong...

On topic:

pawn Код:
public OnPlayerConnect(playerid)
{
    new file[64],PlayerName[25];//Creating a variable where we can store the file path, and the variable to store the player's name.
    GetPlayerName(playerid,PlayerName,sizeof PlayerName);//Storing the players name in the PlayerName variable.
    format(file,sizeof file,"Admin/%s.ini",PlayerName);//Storing the file path with the players name.
    if(!fexist(file))//Checking if the file exists
    {//Here goes the stuff you want to do if the user is not registered.
        SendClientMessage(playerid,-4,"You are not registered! Please use /register <password>");
    }
    else
    {//Here goes the stuff you want to do if the user is registered.
        SendClientMessage(playerid,-4,"You are registered! Use /login <password>");
    }

    FloodByPlayer[playerid] = 0;
    FloodTimer[playerid] = SetTimerEx("FloodCheck",MAX_FLOOD_RATE_SECS,true,"i",playerid);
    return true;
}

public OnPlayerDisconnect(playerid,reason)
{
    PInfo[playerid][Logged] = 0;//Setting the logged in variable to 0.
    FloodByPlayer[playerid] = 0;
    KillTimer(FloodTimer[playerid]);
    return 1;
}
Reply
#10

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
You're completely wrong...

On topic:

pawn Код:
public OnPlayerConnect(playerid)
{
    new file[64],PlayerName[25];//Creating a variable where we can store the file path, and the variable to store the player's name.
    GetPlayerName(playerid,PlayerName,sizeof PlayerName);//Storing the players name in the PlayerName variable.
    format(file,sizeof file,"Admin/%s.ini",PlayerName);//Storing the file path with the players name.
    if(!fexist(file))//Checking if the file exists
    {//Here goes the stuff you want to do if the user is not registered.
        SendClientMessage(playerid,-4,"You are not registered! Please use /register <password>");
    }
    else
    {//Here goes the stuff you want to do if the user is registered.
        SendClientMessage(playerid,-4,"You are registered! Use /login <password>");
    }

    FloodByPlayer[playerid] = 0;
    FloodTimer[playerid] = SetTimerEx("FloodCheck",MAX_FLOOD_RATE_SECS,true,"i",playerid);
    return true;
}

public OnPlayerDisconnect(playerid,reason)
{
    PInfo[playerid][Logged] = 0;//Setting the logged in variable to 0.
    FloodByPlayer[playerid] = 0;
    KillTimer(FloodTimer[playerid]);
    return 1;
}
Thank you! But Now I get Loose Identation on Line

pawn Код:
public OnPlayerText(playerid, text[]) {
{
    FloodByPlayer[playerid] = FloodByPlayer[playerid] +1;
}
    return true;
}
267 is return true;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)