[Help] Error's
#5

I got new errors

Quote:

IC_war.pwn(1949) : error 002: only a single statement (or expression) can follow each "case"
IC_war.pwn(1949 -- 1950) : error 028: invalid subscript (not an array or too many subscripts): "dialogid"
IC_war.pwn(1949 -- 1951) : error 001: expected token: "}", but found "case"
IC_war.pwn(1949 -- 1951) : fatal error 107: too many error messages on one line

Quote:
switch(dialogid)
{
case DIALOG_REGISTER:

{
if(response)
{
new
string[179],pFile[35];

format(pFile, 35, Player_File, GetName(playerid));

new
INI:UserFile = INI_Open(pFile);

INI_WriteInt(UserFile, "Password", udb_hash(inputtext));
INI_WriteInt(UserFile, "Admin", 0);
INI_WriteInt(UserFile, "Money", START_MONEY);
INI_WriteInt(UserFile, "Score", 0);
INI_WriteInt(UserFile, "Skin", SKIN_ID);
INI_WriteInt(UserFile, "Warn", 0);
INI_WriteInt(UserFile, "VIP", 0);
INI_WriteInt(UserFile, "Org", 0);
INI_WriteInt(UserFile, "Lider", 0);

INI_Close(UserFile);

SetPVarInt(playerid, "Registered", 1);
SetPVarInt(playerid, "Logged", 1);
SpawnPlayer(playerid);

format(string, 125, ""COL_YELLOW"Ime: %s | Password: %s uspješno registrovano", GetName(playerid), inputtext);
SCM(playerid, 0x46BA29FF, string);
SpawnPlayer(playerid);
}
else Kick(playerid);
}

Help, please ?
Reply


Messages In This Thread
[Help] Error's - by SpaMaster - 05.08.2012, 14:37
Re: [Help] Error's - by Sig Hansen - 05.08.2012, 14:40
Re: [Help] Error's - by electrux - 05.08.2012, 14:52
Re: [Help] Error's - by SpaMaster - 05.08.2012, 14:53
Re: [Help] Error's - by SpaMaster - 05.08.2012, 15:24
Re: [Help] Error's - by SpaMaster - 05.08.2012, 16:57
Re: [Help] Error's - by SpaMaster - 06.08.2012, 12:04

Forum Jump:


Users browsing this thread: 2 Guest(s)