16.06.2012, 23:52
Hi there,i developed a code ;
But,when i write the command it gives me an error.SERVER: Unknown command. why? :S
pawn Код:
if(strcmp(cmd, "/info", true) == 0) {
new string2[2048];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
new o = OrgutID(playerid);
format(string,256,"Oyuncu Bilgisi - %s",GetName(playerid));
format(string2,2048,"Цldьrme: %d\nЦlьm: %d\nЦlьm/Цldьrme(KD): %s\nSeviye: %d\nExp: %d\nЦrgьt: %s\nPara: $%d\nBankadaki Para: $%d\nAyrıca bu komutu /bilgi (oyuncu id) olarak da kullanabilirsiniz.",PlayerInfo[playerid][Kills],PlayerInfo[playerid][Deaths],PlayerInfo[playerid][Kills]/PlayerInfo[playerid][Deaths],GetLvl(playerid),GetExp(playerid),OrgutInfo[o][OrgutIsim],convertNumber(GetMemberStatsInt(GetName(playerid),"para")),convertNumber(GetPVarInt(playerid, #BANK_PVAR_MNY)));
return ShowPlayerDialog(playerid,3631,DIALOG_STYLE_MSGBOX,string,string2,"Tamam","");
}else{
new player1;
player1 = strval(tmp);
if(!IsPlayerConnected(player1) && player1 == INVALID_PLAYER_ID) return SendClientMessage(playerid,red,"Bцyle bir oyuncu yok.");
new o = OrgutID(player1);
format(string,256,"Oyuncu Bilgisi - %s",GetName(player1));
format(string2,2048,"Цldьrme: %d\nЦlьm: %d\nЦlьm/Цldьrme(KD): %s\nSeviye: %d\nExp: %d\nЦrgьt: %s\nPara: $%d\nBankadaki Para: $%d\nAyrıca bu komutu /bilgi (oyuncu id) olarak da kullanabilirsiniz.",PlayerInfo[player1][Kills],PlayerInfo[player1][Deaths],PlayerInfo[player1][Kills]/PlayerInfo[player1][Deaths],GetLvl(player1),GetExp(player1),OrgutInfo[o][OrgutIsim],convertNumber(GetMemberStatsInt(GetName(player1),"para")),convertNumber(GetPVarInt(player1, #BANK_PVAR_MNY)));
return ShowPlayerDialog(playerid,3631,DIALOG_STYLE_MSGBOX,string,string2,"Tamam","");
}
}