What does this mean? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: What does this mean? (
/showthread.php?tid=370261)
What does this mean? -
xSiiLenTx - 19.08.2012
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.
Re: What does this mean? -
Arca - 19.08.2012
It's pretty self explanatory. The curly brackets are not proper aligned(vertically).
Re: What does this mean? -
Lordzy - 19.08.2012
Post your script/error lines.
Re: What does this mean? -
Sig Hansen - 19.08.2012
Pawno Code? at line 85 and 91
Thank You!
Re: What does this mean? -
xSiiLenTx - 19.08.2012
85:
91:
:3
Re: What does this mean? -
Sig Hansen - 19.08.2012
Edit it that post like from in script line from 85 to 91 line we need to see that
Re: What does this mean? -
xSiiLenTx - 19.08.2012
pawn Код:
return true;
}
public OnPlayerDisconnect(playerid,reason)
{
PInfo[playerid][Logged] = 0;//Setting the logged in variable to 0.
return 1;
{
Re: What does this mean? -
ELiiTEJaMzZ - 19.08.2012
It would be extremely useful if you posted the remainder of the script, the information that you provided is kinda useless when solving problems.
Re: What does this mean? -
SuperViper - 19.08.2012
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;
}
Re: What does this mean? -
xSiiLenTx - 19.08.2012
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;