Un rechable code - 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: Un rechable code (
/showthread.php?tid=370758)
Un rechable code -
NinjaChicken - 21.08.2012
C:\Users\123eatlag\Dropbox\SCRIPT\SGRP3.pwn(1116
![Cool](images/smilies/cool.gif)
: warning 225: unreachable code
pawn Код:
public OnPlayerSpawn(playerid)
{
if(!gHasPlayerChosenSkin[playerid]) {
gHasPlayerChosenSkin[playerid] = 1;
ShowPlayerDialog(playerid, 3497, DIALOG_STYLE_INPUT, "Select the skin you wish to use", "Please input the Skin ID you wish to use", "Choose", "Default");
}
return 1;
if(!gPlayerLogged{playerid})
{
SendClientMessageEx(playerid, COLOR_WHITE, "ERROR: You are not logged in!");
Kick(playerid);
return 1;
}
Re: Un rechable code -
JaKe Elite - 21.08.2012
pawn Код:
public OnPlayerSpawn(playerid)
{
if(!gHasPlayerChosenSkin[playerid]) {
gHasPlayerChosenSkin[playerid] = 1;
ShowPlayerDialog(playerid, 3497, DIALOG_STYLE_INPUT, "Select the skin you wish to use", "Please input the Skin ID you wish to use", "Choose", "Default");
}
if(!gPlayerLogged{playerid})
{
SendClientMessageEx(playerid, COLOR_WHITE, "ERROR: You are not logged in!");
Kick(playerid);
return 1;
}
return 1;
}