08.04.2012, 18:11
I checked the code again, as far I see, one bracket still misses.
Code before:
Code after:
Sorry, I don't have ZCMD include, so I can't test there does that have errors or not :>
EDIT: In your other code (which you posted above) also misses a bracked, also near the end.
Code before:
pawn Код:
case 3://RPG
{
if(GetPlayerMoney(playerid) >= 10000)//If they have more or equal to the price.
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);//Take the cost.
GivePlayerWeapon(playerid, 34, 100);//Give them the weapon/ammo.
SendClientMessage(playerid, -1, "RPG purchased.");//And let them know they just purchased a weapon.
return 1;//Tell pawno to stop processing now.
}
else//Else the dont have enough money to cover the purchase.
{
SendClientMessage(playerid, COLOR_RED, "You dont have 10 000 dollars!");//Tell them.
return 1;//Tell pawno to stop processing now.
}
}
}
switch( dialogid )
{
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_Close(File);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"Have fun Bitches!","Ok","");
}
}
pawn Код:
case 3://RPG
{
if(GetPlayerMoney(playerid) >= 10000)//If they have more or equal to the price.
{
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 10000);//Take the cost.
GivePlayerWeapon(playerid, 34, 100);//Give them the weapon/ammo.
SendClientMessage(playerid, -1, "RPG purchased.");//And let them know they just purchased a weapon.
return 1;//Tell pawno to stop processing now.
}
else//Else the dont have enough money to cover the purchase.
{
SendClientMessage(playerid, COLOR_RED, "You dont have 10 000 dollars!");//Tell them.
return 1;//Tell pawno to stop processing now.
}
}
}
} //Bracket here!
switch( dialogid )
{
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Password",udb_hash(inputtext));
INI_WriteInt(File,"Cash",0);
INI_WriteInt(File,"Admin",0);
INI_WriteInt(File,"Kills",0);
INI_WriteInt(File,"Deaths",0);
INI_Close(File);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"Have fun Bitches!","Ok","");
}
}
EDIT: In your other code (which you posted above) also misses a bracked, also near the end.