19.04.2011, 17:24
Does those lines:
Go into any public or stock?
PHP код:
new name[MAX_PLAYER_NAME],file[80];GetPlayerName(playerid, name, sizeof(name));format(file,sizeof(file),"%s.txt",name);
INI_ParseFile(file, "PlayerStatusClass", false, true, playerid, true, false );
new ClassInfo[20]; GetPVarString(playerid, "SoldierInfo", ClassInfo, sizeof ClassInfo);
if(!strcmp("Soldier",ClassInfo,true))
{
ShowPlayerDialog(playerid,WeaponShop ,DIALOG_STYLE_MSGBOX,"bla bla","|Soldier|","Buy","Cancel");
new string[128]; format(string,sizeof(string),"levelNow: %d",ClassInfo); //i got this so i can see if the player is a Soldier.
SendClientMessage(playerid,YELLOW,string);// But it allways Prints [levelNow: 0] :(
}
else
{
ShowPlayerDialog(playerid,WeaponShop ,DIALOG_STYLE_MSGBOX,"bla bal",""xRED"Nothing Found","Buy","Cancel");
}