23.09.2010, 17:18
(
Последний раз редактировалось FireCat; 23.09.2010 в 17:38.
Причина: I fixed 1 one but not this one
)
i know im asking for alot but im new at making admin scripts lol
im using https://sampforum.blast.hk/showthread.php?tid=174575 its a bit hard
i have this code
help me out
im using https://sampforum.blast.hk/showthread.php?tid=174575 its a bit hard
i have this code
Код:
dcmd_register(playerid,params[])
{
new file[256],n[MAX_PLAYER_NAME];
GetPlayerName(playerid,n,MAX_PLAYER_NAME);
format(file,sizeof(file),"MyAdmin/Users/%s.txt",n);
if(dini_Exists(file)) return SendClientMessage(playerid,YELLOW,"You are already registered!");
if(PInfo[playerid][Regged] == 1) return SendClientMessage(playerid,LIGHTBLUE,"You are already registered!");
if(PInfo[playerid][Logged] == 1) return SendClientMessage(playerid,ORANGE,"You are already registered, /login");
dini_Create(file);
dini_Set(file,"Password",params);
dini_IntSet(file,"Regged",1);
dini_IntSet(file,"Logged",0);
dini_IntSet(file,"Level",0);
SendClientMessage(playerid,LIGHTBLUE,"Congratulations, you have just registered, please /login");
PInfo[playerid][Regged] = 1;
return 1;
}
else // error line
{
SendClientMessage(playerid,GREY,"USAGE: /register <Password>");
}
return 1; //error line
}
Quote:
|
C:\Users\james\Desktop\server2\filterscripts\fadmi n.pwn(264) : warning 217: loose indentation C:\Users\james\Desktop\server2\filterscripts\fadmi n.pwn(272) : error 010: invalid function or declaration C:\Users\james\Desktop\server2\filterscripts\fadmi n.pwn(276) : error 010: invalid function or declaration 2 Errors. |


