29.04.2018, 22:40
Anyone can help convert it to ZCMD?
Код:
if(strcmp(cmd, "/parduoti", true) == 0) { tmp = strtok(cmdtext, idx); if (!strlen(tmp)) { SendClientMessage(playerid, 0xFFFFFFAA, " /pcarsell [playerid] [Preis]"); return 1; } new sellplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if (!strlen(tmp)) { SendClientMessage(playerid, 0xFFFFFFAA, "/pcarsell [playerid] [Geld]"); return 1; } new preis = strval(tmp); if (preis<0) { SendClientMessage(playerid, 0xFFFFFFAA, "Bloga kaina."); return 1; } if (Carlist[playerid][Typ]==-1) { SendClientMessage(playerid, 0xFFFFFFAA, "Neturite automobilio!"); return 1; } if (!IsPlayerConnected(sellplayerid)) { SendClientMessage(playerid, 0xFFFFFFAA, "Ћaidėjas atsijungęs."); return 1; } bietetAn[sellplayerid][0]=playerid; bietetAn[sellplayerid][1]=preis; new playername[MAX_PLAYER_NAME]; new sellplayername[MAX_PLAYER_NAME]; GetPlayerName(playerid,playername,sizeof(playername)); GetPlayerName(sellplayerid,sellplayername,sizeof(sellplayername)); format(string,128,"Ћaidėjui %s siūlote automobilį uћ %i ",sellplayername,preis); SendClientMessage(playerid, 0xFFFFFFAA, string); SendClientMessage(playerid, 0xFFFFFFAA, "Kad atљaukti pardavime raљykite /atsaukti."); format(string,128,"%s siūlo automobilį %s uћ $%i .",playername,Kaufliste[Carlist[playerid][Typ]][Name],preis); SendClientMessage(sellplayerid, 0xFFFFFFAA, string); SendClientMessage(sellplayerid, 0xFFFFFFAA, "Jeigu jums tenkina suma raљykite /priimti."); return 1; }