C:\Users\Vartotojas\Desktop\Modifikacija\Modifikacija\gamemodes\VLG.pwn(60) : error 003: declaration of a local variable must appear in a compound block
C:\Users\Vartotojas\Desktop\Modifikacija\Modifikacija\gamemodes\VLG.pwn(63) : error 010: invalid function or declaration
C:\Users\Vartotojas\Desktop\Modifikacija\Modifikacija\gamemodes\VLG.pwn(64) : error 010: invalid function or declaration
C:\Users\Vartotojas\Desktop\Modifikacija\Modifikacija\gamemodes\VLG.pwn(66) : error 010: invalid function or declaration
C:\Users\Vartotojas\Desktop\Modifikacija\Modifikacija\gamemodes\VLG.pwn(238) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Users\Vartotojas\Desktop\Modifikacija\Modifikacija\gamemodes\VLG.pwn(238) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\Vartotojas\Desktop\Modifikacija\Modifikacija\gamemodes\VLG.pwn(239) : error 035: argument type mismatch (argument 2)
C:\Users\Vartotojas\Desktop\Modifikacija\Modifikacija\gamemodes\VLG.pwn(241) : error 012: invalid function call, not a valid address
C:\Users\Vartotojas\Desktop\Modifikacija\Modifikacija\gamemodes\VLG.pwn(241) : warning 215: expression has no effect
C:\Users\Vartotojas\Desktop\Modifikacija\Modifikacija\gamemodes\VLG.pwn(241) : warning 215: expression has no effect
C:\Users\Vartotojas\Desktop\Modifikacija\Modifikacija\gamemodes\VLG.pwn(241) : error 001: expected token: ";", but found ")"
C:\Users\Vartotojas\Desktop\Modifikacija\Modifikacija\gamemodes\VLG.pwn(241) : error 029: invalid expression, assumed zero
C:\Users\Vartotojas\Desktop\Modifikacija\Modifikacija\gamemodes\VLG.pwn(241) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Errors.
padėkit man..
Kodas: Pasirinkti visus
public OnPlayerConnect(playerid)
new name[MAX_PLAYER_NAME],file[128];
GetPlayerName(playerid,name,sizeof(name));
format(file,sizeof(file),"saves/user/%s.ini",name);
if(!fexist(file)){ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"*Registracija*","Prašome Užsiregistruoti.","Registruotis","Išeiti");}
if(fexsist(file)){ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"*Prisijungimas*","Prašome Prisijungti.","Prisijungti","Išeiti");}
{
Kodas: Pasirinkti visus
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
if(dialogid==1)
{
if(response)
{
new name[MAX_PLAYER_NAME],file[128];
GetPlayerName(playerid,sizeof(name));
format(file,sizeof(file),"saves/user/%s.ini",name);
if(CheckPass(file,inputtext))
{
playerDB[playerid][vedelogin] = true;
new exp = dini_Int(file,"Xp");
if(dini_Int(file,"Admin") == 1){playerDB[playerid][admin]=true;}
if(dini_Int(file,"vip") == 1){playerDB[playerid][vip]=true;}
if(dini_Int(file,"Superadmin") == 1){playerDB[playerid][superadmin]=true;}
if(playerDB[playerid][admin])
{
SendClientMessage(playerid,COLOR_YELLOW,"* Sveiki sugrize, administratoriu komandos: /akomandos .");
}
if(playerDB[playerid][vip])
{
SendClientMessage(playerid,COLOR_YELLOW,"* Sveiki sugrize, VIP komandos: /galivip .");
}
if(!playerDB[playerid][admin]){
PlayerPlaySound(playerid, 1150, 257.6206, -41.5307, 1002.0234); // Garsas
SendClientMessage(playerid,COLOR_YELLOW,"* Sveiki! Jus prisijungete, galite testi!");
}
if(exp == -1){playerDB[playerid][authstate]=1;} else{
GivePlayerMoneyA,2000); //pinigai pradzioje
playerDB[playerid][authstate]=2;}
return 1;
}
SendClientMessage(playerid,RED,"* Slaptazodis neteisingas");
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"* Prisijungimas *","Prašome Prisijungti","Prisijungti","Išeiti");
playerDB[playerid][vedelogin] = false;
return 1;
}
if(dialogid == 0)
{
if(response)
{
new name[MAX_PLAYER_NAME],file[128];
GetPlayerName(playerid,name,sizeof(name));
format(file,sizeof(file),"saves/user/%s.ini",name);
dini_Create(file);
dini_IntSet(file,"slaptazodis",tohash(inputtext));
format(file,sizeof(file),"* Jus uzregistruotas, aciu kad pasirinkote musu serveri. (Slaptazodis: %s)",inputtext);
SendClientMessage(playerid,YELLOW,file);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"* Prisijungimas *","Prašome Prisijungti","Prisijungti","Išeiti");
playerDB[playerid][naujokas]=true;
}
return 1;
{




