Some errors
#1

Код:
C:\Documents and Settings\Andero\Desktop\Stunting Life\filterscripts\ladmin4v2.pwn(793) : warning 217: loose indentation
C:\Documents and Settings\Andero\Desktop\Stunting Life\filterscripts\ladmin4v2.pwn(818) : warning 217: loose indentation
C:\Documents and Settings\Andero\Desktop\Stunting Life\filterscripts\ladmin4v2.pwn(897) : error 017: undefined symbol "DIALOG_STYLE"
C:\Documents and Settings\Andero\Desktop\Stunting Life\filterscripts\ladmin4v2.pwn(897) : error 017: undefined symbol "_INPUT"
C:\Documents and Settings\Andero\Desktop\Stunting Life\filterscripts\ladmin4v2.pwn(897) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Andero\Desktop\Stunting Life\filterscripts\ladmin4v2.pwn(897) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Line 897
Код:
ShowPlayerDialog(playerid,DIALOGID0+2,DIALOG_STYLE _INPUT,"Login Account",lstring,"Login","Quit");
all
Код:
public OnPlayerSpawn(playerid)
{
if(ServerInfo[Locked] == 1 && PlayerInfo[playerid][AllowedIn] == false)
{
GameTextForPlayer(playerid,"~r~Server Locked~n~You must enter password before spawning~n~/password <password>",4000,3);
SetTimerEx("DelayKillPlayer", 2500,0,"d",playerid);
return 1;
}

if(ServerInfo[MustLogin] == 1 && PlayerInfo[playerid][Registered] == 1 && PlayerInfo[playerid][LoggedIn] == 0)
{
#if USE_DIALOGS == true
new lstring[256];
format(lstring,256,"That account '%s 'is not login please login!:",pName(playerid));
ShowPlayerDialog(playerid,DIALOGID0+2,DIALOG_STYLE _INPUT,"Login Account",lstring,"Login","Quit");
#endif
return 1;
}

if(ServerInfo[MustRegister] == 1 && PlayerInfo[playerid][Registered] == 0)
{

new lstring[256];
format(lstring,256,"That account '%s 'is not register!\n\n Register to access your Account:",pName(playerid));
ShowPlayerDialog(playerid,DIALOGID0+1,DIALOG_STYLE _INPUT,"Register Account",lstring,"Register","Quit");
return 1;
}

PlayerInfo[playerid][Spawned] = 1;

if(PlayerInfo[playerid][Frozen] == 1) {
TogglePlayerControllable(playerid,false); return SendClientMessage(playerid,red,"You cant escape your punishment. You Are Still Frozen");
}

if(PlayerInfo[playerid][Jailed] == 1) {
SetTimerEx("JailPlayer",3000,0,"d",playerid); return SendClientMessage(playerid,red,"You cant escape your punishment. You Are Still In Jail");
}

if(ServerInfo[AdminOnlySkins] == 1) {
if( (GetPlayerSkin(playerid) == ServerInfo[AdminSkin]) || (GetPlayerSkin(playerid) == ServerInfo[AdminSkin2]) ) {
if(PlayerInfo[playerid][Level] >= 1)
GameTextForPlayer(playerid,"~b~Welcome~n~~w~Admin" ,3000,1);
else {
GameTextForPlayer(playerid,"~r~This Skin Is For~n~Administrators~n~Only",4000,1);
SetTimerEx("DelayKillPlayer", 2500,0,"d",playerid);
return 1;
}
}
}

if((dUserINT(PlayerName2(playerid)).("UseSkin")) == 1)
if((PlayerInfo[playerid][Level] >= 1) && (PlayerInfo[playerid][LoggedIn] == 1))
SetPlayerSkin(playerid,(dUserINT(PlayerName2(playe rid)).("FavSkin")) );

if(ServerInfo[GiveWeap] == 1) {
if(PlayerInfo[playerid][LoggedIn] == 1) {
PlayerInfo[playerid][TimesSpawned]++;
if(PlayerInfo[playerid][TimesSpawned] == 1)
{
GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).("weap1"), dUserINT(PlayerName2(playerid)).("weap1ammo") );
GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).("weap2"), dUserINT(PlayerName2(playerid)).("weap2ammo") );
GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).("weap3"), dUserINT(PlayerName2(playerid)).("weap3ammo") );
GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).("weap4"), dUserINT(PlayerName2(playerid)).("weap4ammo") );
GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).("weap5"), dUserINT(PlayerName2(playerid)).("weap5ammo") );
GivePlayerWeapon(playerid, dUserINT(PlayerName2(playerid)).("weap6"), dUserINT(PlayerName2(playerid)).("weap6ammo") );
}
}
}
return 1;
}
Thats ladmin script
Reply


Messages In This Thread
Some errors - by antsolen - 17.01.2011, 18:07
Re: Some errors - by Alex_Valde - 17.01.2011, 18:10
Re: Some errors - by SmugglesJr - 17.01.2011, 18:13
Re: Some errors - by Not available - 17.01.2011, 18:15
Re: Some errors - by Calgon - 17.01.2011, 18:18
Re: Some errors - by Mike_Peterson - 17.01.2011, 18:22
Re: Some errors - by Hal - 17.01.2011, 18:25
Re: Some errors - by antsolen - 17.01.2011, 18:32
Re: Some errors - by Alex_Valde - 17.01.2011, 18:34
Re: Some errors - by Not available - 17.01.2011, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)